Created
May 9, 2016 07:31
-
-
Save lili21/3a3edf5cd6f40ace78f08fe358c89e98 to your computer and use it in GitHub Desktop.
delete merged remote branch
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
git branch -r --merged master | sed 's/origin\///' | egrep -v 'master$' | xargs -n 1 git push origin --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment