Teflon Ted
Teflon Ted

Reputation: 8856

Can you view an aggregate changeset in git? If so, how?

In Subversion you can specify a range of versions to get an aggregate view of a series of commits. Is this possible in git? If so, how?

Upvotes: 8

Views: 1130

Answers (1)

pilif
pilif

Reputation: 12718

You can pass ranges of revisions using the .. (and ...) operator.

git diff 6d0918...HEAD

instead of giving (abbreviated) SHA hashes, you can also denote revisions relative to branches and tags:

git diff HEAD~4 # shows the diff from the last four commits to the current one

Have a look at the chapter "Specifying Revisions" in the git-rev-parse manual page

Upvotes: 9

Related Questions