Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sergeiwaigant/6e37617dc614f97817ae9549e9caa6d0 to your computer and use it in GitHub Desktop.
Save sergeiwaigant/6e37617dc614f97817ae9549e9caa6d0 to your computer and use it in GitHub Desktop.
# Sometimes after a sprint, all the remaining branches are just taking up space.
# Here's a small snippet to remove all your local branches in one go.
git branch | grep -v "master" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment