Skip to content

Instantly share code, notes, and snippets.

@kumbasar
Created October 15, 2019 08:03
Show Gist options
  • Save kumbasar/394ba613c11212211b9dee1bf276adcc to your computer and use it in GitHub Desktop.
Save kumbasar/394ba613c11212211b9dee1bf276adcc to your computer and use it in GitHub Desktop.
Deleting Old Local Git Branches
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