Skip to content

Instantly share code, notes, and snippets.

@asinghal
Created August 7, 2014 20:49
Clean up/ prune old Git branches
git remote prune origin
git checkout master && git branch --merged | grep -v master | sed -e 's/origin\///' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment