Created
November 22, 2019 10:04
-
-
Save codepotato/8f2aecdcf74b5c19cc28afc610b9140f to your computer and use it in GitHub Desktop.
Remove all git repos that have already been merged with origin
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
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
😍