Last active
December 15, 2015 17:28
-
-
Save rufus2021/135be77a40cbb732c714 to your computer and use it in GitHub Desktop.
delete all local branches and save master and develop
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 br | grep -Ev 'develop|master' | xargs git br -D // brute force | |
git br | grep -Ev 'develop|master' | xargs git br -d // preserver unmerged branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also helpful:
delete all local branches that have been merged