How can I generate a git diff of what's changed since the last time I pulled?

Posted by Teflon Ted on Stack Overflow See other posts from Stack Overflow or by Teflon Ted
Published on 2008-09-14T00:02:41Z Indexed on 2010/05/14 0:34 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

I'd like to script, preferably in rake, the following actions into a single command:

  1. Get the version of my local git repository.
  2. Git pull the latest code.
  3. Git diff from the version I extracted in step #1 to what is now in my local repository.

In other words, I want to get the latest code form the central repository and immediately generate a diff of what's changed since the last time I pulled.

© Stack Overflow or respective owner

Related posts about git

Related posts about diff