Created
September 6, 2025 20:09
-
-
Save aspeckt-112/eab8b9a72a55c6f7cdd199c7ad036a77 to your computer and use it in GitHub Desktop.
Git Gone
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] | |
| gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From here: https://dev.to/paramount3545/remove-gone-git-branches-36eh