Last active
August 19, 2022 16:49
-
-
Save DominoPivot/a0f8d4a7ca7bded566733259b01d1696 to your computer and use it in GitHub Desktop.
Useful git aliases
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
[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