Skip to content

Instantly share code, notes, and snippets.

@bialikover
Last active August 18, 2017 00:20
Show Gist options
  • Save bialikover/87ad875031ea0f8d8f0a to your computer and use it in GitHub Desktop.
Save bialikover/87ad875031ea0f8d8f0a to your computer and use it in GitHub Desktop.
git branch purge/prune alias
alias gbpurge='git branch --merged | grep -v "\*" | grep -v "master" | grep -v "develop" | grep -v "staging" | xargs -n 1 git branch -d'
alias gbprune='git remote prune origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment