How to clean up merged branches
Start in your main working copy.
Have the branch checked out that you want to treat as canonical. The -a option lists all remote branches even if you haven't checked them out locally.
-a
git checkout develop git branch -a --merged
also, for reference: git branch -a --no-merged
git branch -a --no-merged
git branch -d branch-name
git push origin :branch-name
Now, in other checkouts of the same repo:
git fetch origin git remote prune origin --dry-run git remote prune origin
There was an error while loading. Please reload this page.