threads / discuss / 17553

see commit messages on git pull

Subject: see commit messages on git pull

## tl;dr

3 messages between Feb 4, 2009 and Feb 4, 2009.

replies: 2people: 3as markdown or json

Thomas Koch· Feb 4, 2009, 11:45 UTC · lore

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,
-- 
Thomas Koch, http://www.koch.ro
YMC AG, http://www.ymc.ch
Santi Béjar· Feb 4, 2009, 12:39 UTC · re: Thomas Koch · lore

Re: see commit messages on git pull

2009/2/4 Thomas Koch <thomas@koch.ro>:
> 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

Bernt Hansen· Feb 4, 2009, 12:57 UTC · re: Thomas Koch · lore

Re: see commit messages on git pull

Thomas Koch <thomas@koch.ro> writes:
> 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

← back to recent threads