Conqueror
Conqueror

Reputation: 4443

Get the changes made in a specific file at a specific commit?

I know you can do git log --stat and the do a git diff (commit1) (commit2), however, this gives me the changes in all of the files. I would like to see the changes in only a specific file. Is this possible?

Upvotes: 2

Views: 488

Answers (1)

dcow
dcow

Reputation: 7985

$ git diff commit1 commit2 file-in-question

Upvotes: 5

Related Questions