Skip to content

Instantly share code, notes, and snippets.

@tgodfrey
Created July 3, 2018 19:47
Show Gist options
  • Save tgodfrey/63a5f1caad26b954d95ca952b80b5dbc to your computer and use it in GitHub Desktop.
Save tgodfrey/63a5f1caad26b954d95ca952b80b5dbc to your computer and use it in GitHub Desktop.
clean up local git branches
http://erikaybar.name/git-deleting-old-local-branches/
git branch -vv | grep 'origin/.*: 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