Skip to content

Instantly share code, notes, and snippets.

@vladholubiev
Created September 17, 2018 07:43
Show Gist options
  • Select an option

  • Save vladholubiev/44cfbf1b25b30bc18e4bdcf224b6e04a to your computer and use it in GitHub Desktop.

Select an option

Save vladholubiev/44cfbf1b25b30bc18e4bdcf224b6e04a to your computer and use it in GitHub Desktop.
git clean-branches - removes any local branch which is not master/develop(ment)
git config --global alias.clean-branches '!git branch | grep -v "master\|develop" | xargs git branch -D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment