Created
November 23, 2022 17:55
-
-
Save jwhulette/ed79e5d50e3ccee23bfff02375f73ecb to your computer and use it in GitHub Desktop.
[GIT Forget] #git
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
Add to | |
~/.gitconfig | |
[alias] | |
forget="! /usr/local/bin/git fetch -p && /usr/local/bin/git branch -vv | awk '/: gone]/{print $1}' | xargs /usr/local/bin/git branch -D" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment