Skip to content

Instantly share code, notes, and snippets.

@wrandowR
Last active September 3, 2021 13:45
Show Gist options
  • Save wrandowR/e567cf1048408740857a10c0b5f7adb6 to your computer and use it in GitHub Desktop.
Save wrandowR/e567cf1048408740857a10c0b5f7adb6 to your computer and use it in GitHub Desktop.

Delete all git 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