Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Removes all local branches of which are stale
git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment