Last active
December 26, 2023 06:34
-
-
Save MarvinJWendt/c79dc4f4b25e6400455573ee2fa7b33a to your computer and use it in GitHub Desktop.
Deletes merged local branches, except "main" or "master".
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 "(^\*|main|master)" | xargs git branch -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment