Skip to content

Instantly share code, notes, and snippets.

@johncblandii
Created August 14, 2013 19:39
Show Gist options
  • Save johncblandii/6234768 to your computer and use it in GitHub Desktop.
Save johncblandii/6234768 to your computer and use it in GitHub Desktop.
Git: Remove merged branches from master
git branch -r --merged upstream/master | grep origin | grep -v origin/master | sed 's/ *origin\///' | xargs -I% echo git push origin :%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment