Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find all the commits there are in lab branch but in master branch

Tags:

git

git-cherry lets me find all the commits missing from upstream. How do I find all the commits that are there in local lab branch but not in local master branch.

git branch -d lab 

Above operation fails because I have some commits not merged. I want the list of those commits that are not merged.

like image 442
Nick Vanderbilt Avatar asked Mar 26 '10 15:03

Nick Vanderbilt


1 Answers

git log master..lab will show all commits in lab that aren't in master.

like image 133
mipadi Avatar answered Sep 20 '22 18:09

mipadi