Skip to content

Instantly share code, notes, and snippets.

@battoni
Created February 26, 2019 18:30
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 battoni/a8297574150f83da94549f21e89f359e to your computer and use it in GitHub Desktop.
Save battoni/a8297574150f83da94549f21e89f359e to your computer and use it in GitHub Desktop.
Git Aliases
Delete all branches with the exeption of MASTER and the CURRENT branch you are at execution time:
alias gitClean='git branch | egrep -v "(master|\*)" | xargs git branch -D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment