Last active
November 16, 2022 18:15
-
-
Save psulightning/97a5fd2cb50290822d057d0d3a155b18 to your computer and use it in GitHub Desktop.
Git Gone
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
[alias] | |
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs git branch -D" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment