Skip to content

Instantly share code, notes, and snippets.

@AhmedHelalAhmed
Last active February 11, 2021 00:00
Show Gist options
  • Save AhmedHelalAhmed/8686bcf30484da77d31deb7e20f949fc to your computer and use it in GitHub Desktop.
Save AhmedHelalAhmed/8686bcf30484da77d31deb7e20f949fc to your computer and use it in GitHub Desktop.
The simpler way to delete all branches but keeping others like "release" and "master"
git branch | grep -v "release" | grep -v "master" | xargs git branch -D
@AhmedHelalAhmed
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment