Skip to contentSkip to conversation

see commit messages on git pull

DISCUSSION Thomas Koch 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I'd like to see the commit messages of the fetched commits, when I do git pull. Is that possible?

It would also be fine to have sth. like git log --since-last-pull ?

Best regards,

Signature · 2 lines
Thomas Koch, http://www.koch.ro
YMC AG, http://www.ymc.ch
#1 lore raw
Quoted 4 lines · Thomas Koch

I'd like to see the commit messages of the fetched commits, when I do git pull. Is that possible?

It would also be fine to have sth. like git log --since-last-pull ?

git log ORIG_HEAD..

after the pull should do what you want.

-Bernt

#2 lore raw
In reply to Thomas Koch

2009/2/4 Thomas Koch <[email protected]>:

Quoted 4 lines

I'd like to see the commit messages of the fetched commits, when I do git pull. Is that possible?

It would also be fine to have sth. like git log --since-last-pull ?

I have this alias:

alias.last=log @{1}.. --decorate --reverse --stat -C --no-merges

It uses the reflog to show the commits between the old HEAD (@{1}) and the current HEAD. You can also specify the branch that you want to see with branch@{1}..branch@{0}.

HTH,
Santi