Skip to content

Instantly share code, notes, and snippets.

@isaaclw
Last active November 22, 2019 21:08
Show Gist options
  • Save isaaclw/4b068256927e9fa105d81a4ea1595fe6 to your computer and use it in GitHub Desktop.
Save isaaclw/4b068256927e9fa105d81a4ea1595fe6 to your computer and use it in GitHub Desktop.
Clear out old branches #git #bash
git remote prune origin
# or delete branches:
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment