Find all commits in the lab branch, but in the main branch

git-cherry allows me to find all the commits that are missing at the top. How to find all the commits that are in the local branch of the laboratory, but not in the local branch of the wizard.

git branch -d lab 

The above operation fails because some commits are not merged. I want a list of those commits that are not merged.

+7
git
source share
1 answer

git log master..lab will show all commits in lab that are not in master .

+16
source share

All Articles