Last active
June 1, 2022 03:12
-
-
Save danielweinmann/0c9b6f04e3eac1edfe123e6f12ad4e83 to your computer and use it in GitHub Desktop.
Add an alias to remove all topic branches that are already merged into 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 config --global alias.cleanb "! git checkout main && git branch --merged main | grep -v '^[ *]*main$' | xargs git branch -d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment