Skip to content

Instantly share code, notes, and snippets.



Last active Nov 17, 2017
What would you like to do?
Delete untracked local git branches
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment