Created
April 14, 2016 11:04
-
-
Save brenes/94a50a6b95d28c5aa9ec279feb8ac92e to your computer and use it in GitHub Desktop.
Revisions
-
brenes created this gist
Apr 14, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ Delete local merged branches: git branch --merged | xargs -I BRANCH git branch -d BRANCH Delete remote merged branches: git branch -r --merged | grep -v '^*' | grep -v master | sed 's/origin\///g' | xargs -I BRANCH -P 10 git push origin :BRANCH