Skip to content

Instantly share code, notes, and snippets.

@SanderVerkuil
Created October 26, 2016 12:46
Show Gist options
  • Save SanderVerkuil/9e3e605380290262bed18871ce63e2d7 to your computer and use it in GitHub Desktop.
Save SanderVerkuil/9e3e605380290262bed18871ce63e2d7 to your computer and use it in GitHub Desktop.
Deletes all the github branches that had a repository, and do not have a repository any more.
git branch -avv | 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