Skip to content

Instantly share code, notes, and snippets.

@ryantuck
Created October 26, 2021 19:59
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 ryantuck/9cf00425b01749c4da09e0f64d53bf4b to your computer and use it in GitHub Desktop.
Save ryantuck/9cf00425b01749c4da09e0f64d53bf4b to your computer and use it in GitHub Desktop.
Delete local git branches that have been merged. I think assumes you're on master.
git branch --merged | grep -v master | xargs -I % git branch -D %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment