Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Last active March 31, 2018 02:08
Show Gist options
  • Save mrbusche/6dd845238650138bf81c6869a391008d to your computer and use it in GitHub Desktop.
Save mrbusche/6dd845238650138bf81c6869a391008d to your computer and use it in GitHub Desktop.
Delete deleted git branches locally
git remote update origin --prune && 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