Skip to content

Instantly share code, notes, and snippets.

@johncblandii
Created August 14, 2013 19:39
Embed
What would you like to do?
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