git: How to diff changed files versus previous versions after a pull?

Posted by doug on Stack Overflow See other posts from Stack Overflow or by doug
Published on 2010-03-11T20:05:51Z Indexed on 2010/03/11 20:09 UTC
Read the original article Hit count: 341

Filed under:
|
|

I'm new to git, using it via Terminal on Snow Leopard.

When I run "git pull" I often want to know what changed between the last version of a file and the new one. Say I want to know what someone else committed to a particular file.

How is that done?

I'm assuming it's "git diff" with some parameters for commit x versus commit y but I can't seem to get the syntax. I also find "git log" confusing a bit and am not sure where to get the commit ID of my latest version of the file versus the new one.

© Stack Overflow or respective owner

Related posts about git

Related posts about osx