Skip to content

Instantly share code, notes, and snippets.

@wintorez

wintorez/git_prune.bash

Last active Nov 17, 2017
Embed
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