Skip to content

Instantly share code, notes, and snippets.

@jsl
Created December 30, 2011 19:04
Show Gist options
  • Save jsl/1541062 to your computer and use it in GitHub Desktop.
Save jsl/1541062 to your computer and use it in GitHub Desktop.
for i in `git br -r | grep -v master | sed 's/origin\///'` ; do git push origin :$i ; sleep 1 ; done
@jsl
Copy link
Author

jsl commented Dec 30, 2011

Delete remote git branches other than master.

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