Skip to content

Instantly share code, notes, and snippets.

@asmega
Created January 16, 2012 11:23
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 asmega/1620379 to your computer and use it in GitHub Desktop.
Save asmega/1620379 to your computer and use it in GitHub Desktop.
delete locally merged git branches
git branch --merged develop | grep -v 'master$' | grep -v 'develop$' | xargs git branch -d
# find all local branches merged in to develop
# dont delete master or develop branches
# then do it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment