Skip to content

Instantly share code, notes, and snippets.

@MikeFoden
Created September 3, 2019 00:08
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 MikeFoden/b4caf312446430914df5b8377d74e516 to your computer and use it in GitHub Desktop.
Save MikeFoden/b4caf312446430914df5b8377d74e516 to your computer and use it in GitHub Desktop.
Git Branch Cleanup Commands
git fetch origin --prune
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