Created
February 3, 2021 12:52
-
-
Save Neoglyph/624d03a24d9c627d8fa200a41b114c84 to your computer and use it in GitHub Desktop.
Delete local branches that are already merged
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 branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment