Created
January 16, 2012 11:23
-
-
Save asmega/1620379 to your computer and use it in GitHub Desktop.
delete locally merged git branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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