Skip to content

Instantly share code, notes, and snippets.

@i-sannikov
Created November 28, 2019 08:26
Show Gist options
  • Save i-sannikov/3b71e53b0cbac15b2fb86487802de1f5 to your computer and use it in GitHub Desktop.
Save i-sannikov/3b71e53b0cbac15b2fb86487802de1f5 to your computer and use it in GitHub Desktop.
Clean local branches
git branch -l --merged | grep -v '>' | grep -v master | xargs -L1 | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment