Skip to content

Instantly share code, notes, and snippets.

@bdurand
Created September 6, 2018 20:51
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 bdurand/44e27ef2fcc60d4d26d4738eb8d05f65 to your computer and use it in GitHub Desktop.
Save bdurand/44e27ef2fcc60d4d26d4738eb8d05f65 to your computer and use it in GitHub Desktop.
Git Cleanup Alias
[alias]
cleanup = "!git branch --merged master | grep -v '\\*\\|master\\|develop\\|deploy\\|release\\|staging\\|sprint' | xargs -n 1 git branch -d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment