Skip to content

Instantly share code, notes, and snippets.

@carlin-q-scott
Last active August 18, 2025 21:06
Show Gist options
  • Save carlin-q-scott/417e6eeeecdbcc29edd2f546c7faaf86 to your computer and use it in GitHub Desktop.
Save carlin-q-scott/417e6eeeecdbcc29edd2f546c7faaf86 to your computer and use it in GitHub Desktop.
WSL2 Bash Extensions
# copy branch to Windows clipboard
alias cp='git rev-parse --abbrev-ref HEAD | tr -d '\n' | clip.exe'
# Prune dead bratches
alias tb='git fetch --prune && git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment