Skip to content

Instantly share code, notes, and snippets.

@DominoPivot
Last active August 19, 2022 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominoPivot/a0f8d4a7ca7bded566733259b01d1696 to your computer and use it in GitHub Desktop.
Save DominoPivot/a0f8d4a7ca7bded566733259b01d1696 to your computer and use it in GitHub Desktop.
Useful git aliases
[alias]
# Deletes branches that are gone from remote
gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs -r git branch -D; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment