Reputation: 126185
I'm working on a open source project where a sequence of events might look like:
Is there a convenient way for me to see which local branches have been merged into master?
That is, which of my features have made it through the review process and been accepted, and which haven't?
Upvotes: 1
Views: 75
Reputation: 126185
It turns out to be very easy. The command git branch --merged
does exactly that:
git branch --merged master
That lists every branch which has been merged into master. If they're feature branches, I guess you can delete them at that point.
And:
git branch --no-merged master
which lists every branch which hasn't.
Upvotes: 1