Skip to content

Instantly share code, notes, and snippets.

@tgallacher
Created October 29, 2018 12:19
Show Gist options
  • Save tgallacher/cae12db973a235b52e9e5b014d21d633 to your computer and use it in GitHub Desktop.
Save tgallacher/cae12db973a235b52e9e5b014d21d633 to your computer and use it in GitHub Desktop.
Shell aliases
# Remove merged branches from local repo.
alias git_prune_branches='git fetch && git remote prune origin && git br -v | grep gone | awk '"'"'{print $1;}'"'"' | xargs -n 1 git br -d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment