Skip to content

Instantly share code, notes, and snippets.

@skatkov
Created May 8, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skatkov/ffbbf7463101b4f5a5dd to your computer and use it in GitHub Desktop.
Save skatkov/ffbbf7463101b4f5a5dd to your computer and use it in GitHub Desktop.
removing all origin branches
git branch -a | grep /origin/ | awk -F/ '{print $3}'| xargs -I {} git push origin :{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment