Skip to content

Instantly share code, notes, and snippets.

@obar1
Created February 15, 2023 10:48
Show Gist options
  • Save obar1/f09e749b1176ae33589b966920f14d0e to your computer and use it in GitHub Desktop.
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:
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