Skip to content

Instantly share code, notes, and snippets.

@jjgonecrypto
Created October 31, 2012 15:19
Show Gist options
  • Select an option

  • Save jjgonecrypto/3987610 to your computer and use it in GitHub Desktop.

Select an option

Save jjgonecrypto/3987610 to your computer and use it in GitHub Desktop.
delete used remote branches
git branch -r --merged master | sed 's/ *origin\///' | grep -v 'master$' | xargs -I% git push origin :%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment