Skip to content

Instantly share code, notes, and snippets.

@jordelver
Last active January 2, 2016 19:29
Show Gist options
  • Save jordelver/8350917 to your computer and use it in GitHub Desktop.
Save jordelver/8350917 to your computer and use it in GitHub Desktop.
How to clean up branches on GitHub

How to clean up branches on GitHub

Delete un-needed branches

I do this from the GitHub interface.

https://github.com/<account>/<repo>/branches?merged=1

Remove references to remotes

git remote prune origin --dry-run

Remove --dry-run when you're happy with what it will remove.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment