Created
November 12, 2012 15:30
-
-
Save yurydelendik/4059975 to your computer and use it in GitHub Desktop.
Detection and removal merged origin 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
# list branches from origin | |
git branch -r | grep "origin/" | |
# show branches that are merge in the specific tree | |
git branch -r --contains origin/branchname | grep "mozilla/master" | |
# delete branch | |
git push origin :branchname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment