Skip to content

Instantly share code, notes, and snippets.

@rodelta
Last active May 20, 2019 11:28
Show Gist options
  • Save rodelta/39b85d097351f0d7c6acc26196c64c29 to your computer and use it in GitHub Desktop.
Save rodelta/39b85d097351f0d7c6acc26196c64c29 to your computer and use it in GitHub Desktop.
clean git local branches
git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment