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.