Skip to content

Instantly share code, notes, and snippets.

@kostandy
Created October 7, 2019 09:56
Show Gist options
  • Save kostandy/a162c112e4a4df39e892076644690a48 to your computer and use it in GitHub Desktop.
Save kostandy/a162c112e4a4df39e892076644690a48 to your computer and use it in GitHub Desktop.
Remove all local branches except 'master'
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