Last active
August 24, 2021 19:02
-
-
Save tschaub/515529a811e4a06e169c to your computer and use it in GitHub Desktop.
Prune all remotes and delete all branches that are already merged into the current branch
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 config --global alias.tidy '!for r in `git remote`; do git remote prune $r; done && git branch --merged | grep -v "\*" | xargs -n 1 git branch -d' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment