Created
April 25, 2018 15:32
-
-
Save sandfox/acf01019a91858048b6b34af366cc700 to your computer and use it in GitHub Desktop.
trim local branches in git
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 checkout mater git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d | |
git remote prune origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment