Skip to content

Instantly share code, notes, and snippets.

@dpaez
Created March 11, 2020 14:17
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 dpaez/f74205ddd18e237a9093dddf434348c7 to your computer and use it in GitHub Desktop.
Save dpaez/f74205ddd18e237a9093dddf434348c7 to your computer and use it in GitHub Desktop.
Handy method for keeping your branches clean (source: https://devconnected.com/how-to-clean-up-git-branches/)
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment