Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git / Github
// remove all local branches except from the ones that exist in remote
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment