Skip to content

Instantly share code, notes, and snippets.

@psulightning
Last active November 16, 2022 18:15
Show Gist options
  • Save psulightning/97a5fd2cb50290822d057d0d3a155b18 to your computer and use it in GitHub Desktop.
Save psulightning/97a5fd2cb50290822d057d0d3a155b18 to your computer and use it in GitHub Desktop.
Git Gone
[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