silvercover
silvercover

Reputation: 83

How to get list of changes between two commits, from Git server

Imagine there is one git user with read access. at the first time he clones a repo on his machine. then he finds out that there is a new bunch of change and do pull the repo (pull request #1).

Some hours later he told to do pull again (pull request #2). so how can he get list of changes between the [latest commits] from these two pulls requests?

Upvotes: 2

Views: 1735

Answers (2)

Alex Wolf
Alex Wolf

Reputation: 20118

For concrete code changes you can use git diff.

git diff <sha1 of pull request #1> <sha1 of pull request #2>

Take a look at the documentation.

Upvotes: 2

Mureinik
Mureinik

Reputation: 310993

git log accepts a range parameter:

git log <1st sha>..<2nd sha>

Upvotes: 1

Related Questions