Created
April 5, 2012 16:27
-
-
Save tabuchid/2312335 to your computer and use it in GitHub Desktop.
Get rid of merged 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
function gitclean(){ | |
git remote prune origin | |
git branch -a --merged | grep -v master | sed -e 's/.*\//:/g' | xargs git push origin | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment