Created
October 26, 2021 19:59
-
-
Save ryantuck/9cf00425b01749c4da09e0f64d53bf4b to your computer and use it in GitHub Desktop.
Delete local git branches that have been merged. I think assumes you're on master.
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 --merged | grep -v master | xargs -I % git branch -D % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment