Skip to content

Instantly share code, notes, and snippets.

@marczych
Created September 30, 2016 23:24
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 marczych/b1ba626c2eaa64f1d25e7a3b08bccda3 to your computer and use it in GitHub Desktop.
Save marczych/b1ba626c2eaa64f1d25e7a3b08bccda3 to your computer and use it in GitHub Desktop.
git branch -r --merged | egrep -v "(^\*|master|dev)" | sed -E 's#^.*origin/(.*)$#:\1#' | xargs git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment