Skip to content

Instantly share code, notes, and snippets.

@jsl
Created December 30, 2011 19:04
Show Gist options
  • Select an option

  • Save jsl/1541062 to your computer and use it in GitHub Desktop.

Select an option

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

jsl commented Dec 30, 2011

Copy link
Copy Markdown
Author

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