Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show "new" commits in git

I do

git pull

to get new commits from remote and merge them with my local branch.

How can I list the commits that "just came in" ?

like image 720
Alex Avatar asked Aug 31 '12 13:08

Alex


1 Answers

You can use this:

git log @{1}..

This is the same as

git log currentbranch@{1}..currentbranch

where the @{1} notation means "the commit the branch pointed to just before it last got updated".

This shows you exactly the commits that got merged.

like image 78
opqdonut Avatar answered Sep 29 '22 19:09

opqdonut