We have a fairly large GIT repo and I would like to remove branches that were never merged back into master.
The reverse is fine too - a way to list all branches that have been merged into master at some point.
I would like a get a list to begin with rather then simply deleting the branches right away, since some branches may be worth keeping still or have been in development more recently.
So the question is: Is there a way to list all branches that never had any of their changes merged back into master?
git branch --no-merged master
Or for the other way,
git branch --merged master
docs
git help branch
says:Hence, for finding all branches already merged to master you can use
git branch --merged master
.