Created
May 27, 2017 06:22
-
-
Save arthurchui/a31681f4f8ea2cf6579ee5311d35a399 to your computer and use it in GitHub Desktop.
git-delete-merged-remote
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
| #!/bin/bash | |
| git branch -r --merged | grep origin | sed 's/origin\///' | xargs -n 1 git push --delete origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment