Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save devmuffy/b1e255f55fc8c886e587ebfd4bb5e396 to your computer and use it in GitHub Desktop.
Save devmuffy/b1e255f55fc8c886e587ebfd4bb5e396 to your computer and use it in GitHub Desktop.
Remove gone branches
git branch -vv | grep ': gone' | awk '{print $1}' >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -D </tmp/merged-branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment