Created
October 7, 2019 09:14
-
-
Save kostandy/9b06b4ececa90a18b89279782529a0bd to your computer and use it in GitHub Desktop.
Remove checkout branches which were merged to master from remote origin (be careful!)
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 | grep -v master | 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