Skip to content

Instantly share code, notes, and snippets.

@omkar-dsd
Created February 1, 2019 07:41
Show Gist options
  • Save omkar-dsd/1ce6876da7e3b9f6fff331a131dfd47e to your computer and use it in GitHub Desktop.
Save omkar-dsd/1ce6876da7e3b9f6fff331a131dfd47e to your computer and use it in GitHub Desktop.
Script to SAFE delete all existing branches
for b in `git branch`
do
`git branch -d $b`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment