Skip to content

Instantly share code, notes, and snippets.

@chalmagean
Last active August 13, 2016 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chalmagean/d0e80a1b58204c937e15886087256898 to your computer and use it in GitHub Desktop.
Save chalmagean/d0e80a1b58204c937e15886087256898 to your computer and use it in GitHub Desktop.
Git commands
# Purge merged branches
git branch --merged | grep -v "\*" | grep -v master | grep -v staging | grep -v develop | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment