If you do git pull , it automatically merges commits; You cannot look only at new ones, but git log will provide you with a list of all commits.
If you just fetch ed commits, you can list them before merging, but I think it might be a little pointless.
Change A quick glance at the Internet seems to tell me that git log -p ..FETCH_HEAD will display the extracted, but not related transactions, as a fun fact if you ever need to see only your obligations.
Another : the ellotheth link in its comment seems to have a solution that even works with pull. It seems like git diff being used, but maybe git log ORIG_HEAD.. or would that work too?
... However, using fetch and merge instead of pull can be smart, especially if you assume that you don’t necessarily want to merge all commits or all at once.
user308323
source share