Skip to content

Instantly share code, notes, and snippets.

@thibaut-pro
Created May 1, 2020 20:56
Show Gist options
  • Save thibaut-pro/221e2bdace0c80cc175e1427cdd1fbd5 to your computer and use it in GitHub Desktop.
Save thibaut-pro/221e2bdace0c80cc175e1427cdd1fbd5 to your computer and use it in GitHub Desktop.
Clean up old branches
git remote prune origin ─╯
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