Created
August 20, 2012 18:28
-
-
Save donabrams/3406467 to your computer and use it in GitHub Desktop.
GIT clean branches that have already been merged
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
| alias cleanbr='!git branch -r --no-color --merged | grep -v \"/\\(master\\|develop\\|integration\\)$\" | sed \"s/\\// :/\" | xargs -L1 git push && git branch --no-color --merged | grep -v \" \\(master\\|develop\\|integration\\)$\" | xargs -L1 git br -d' |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from http://robots.thoughtbot.com/post/29355216290/git-landscaping comments