Created
February 15, 2023 10:48
-
-
Save obar1/f09e749b1176ae33589b966920f14d0e to your computer and use it in GitHub Desktop.
old_branch_delete Just add this alias to your .bashrc/.bash_profile, the two commands made into one and I updated the second to work on all shells:
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 old_branch_delete='git fetch -p && git branch -vv | awk "/: 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