Created
November 17, 2013 22:16
-
-
Save treshugart/7518976 to your computer and use it in GitHub Desktop.
Sync and cleanup all local branches that have been merged (except master).
This file contains hidden or 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 pull | |
git remote prune origin | |
git branch --merged | grep -v "\*" | grep -v "master" | xargs -n 1 git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment