Skip to content

Instantly share code, notes, and snippets.

@nealsanche
Created February 26, 2021 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nealsanche/ab6c7150eacca01abac089ca486308f2 to your computer and use it in GitHub Desktop.
Save nealsanche/ab6c7150eacca01abac089ca486308f2 to your computer and use it in GitHub Desktop.
Cleanup Git Branches
[alias]
cu = !git remote prune origin && git branch -vv | grep 'origin.*: gone]' | awk '{print $1}' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment