Skip to content

Instantly share code, notes, and snippets.

@cbourdage
Created October 7, 2015 18:40
Show Gist options
  • Save cbourdage/56c83724a5e9528df9c8 to your computer and use it in GitHub Desktop.
Save cbourdage/56c83724a5e9528df9c8 to your computer and use it in GitHub Desktop.
prune + delete local branches no longer used
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment