Last active
December 3, 2024 08:44
-
-
Save alva-v/b431ad67d642063e4681975ef07c1d35 to your computer and use it in GitHub Desktop.
Delete branches missing on origin, see https://scribe.rip/@ezequiel.perez/cleaning-up-local-git-branches-that-no-longer-exist-on-remote-a038d777f8c7
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 fetch -p && git branch -vv|grep 'gone]'|awk '{print $1}'|xargs git branch -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment