Last active
September 29, 2023 16:36
-
-
Save naush/692c9f41cf7b661b35099285fa3d83f1 to your computer and use it in GitHub Desktop.
One liner for deleting merged git branches
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 main | xargs -n 1 git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment