Skip to content

Instantly share code, notes, and snippets.

@jecc1982
Created October 25, 2019 00:04
Show Gist options
  • Select an option

  • Save jecc1982/db3ce9acdc4e356f6a2a2f9f08cb3574 to your computer and use it in GitHub Desktop.

Select an option

Save jecc1982/db3ce9acdc4e356f6a2a2f9f08cb3574 to your computer and use it in GitHub Desktop.
Remove local branches where remote are gone
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment