Home > Mobile >  git diff show all changes between two commits
git diff show all changes between two commits

Time:10-08

Lets say I have 100 commits and I want to see all the changes of a specific file.

git diff 0..100 -- file

This only gives me the changes of the file between the commits. But what I really want, is to be shown all the changes that were made. Eg. also those in commit 25, 36, 67 etc.

Is there a neat git command for this or do I have to make a script? I guess I want git to do something like the following:

git diff 0..1, 1..2, 2..3 etc... -- file

Though I don't want to have to type out all the different commits

CodePudding user response:

I think you just want to use git show?

$ git show 0..100 -- file
commit 100
Author: ...
Date:   ...

    Commit Message

diff --git ... ...
...

commit 99
Author: ...
Date:   ...

...
  •  Tags:  
  • git
  • Related