Last active
October 13, 2015 02:28
-
-
Save dkinzer/4125524 to your computer and use it in GitHub Desktop.
Quickly delete all git branches that are fully deployed and follow a naming convention.
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
| # Delete all deployed branches that are fully merged. | |
| git branch -d --merged | |
| # The above doesn't actually always work for me. So the next option is | |
| git branch -d $(git branch --merged | cut -d \* -f 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment