Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

You can get git to diff two different filesdiff two different files:

git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt

You can get git to diff two different files:

git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt

You can get git to diff two different files:

git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
Source Link
Colin Pickard
  • 8.7k
  • 3
  • 32
  • 38

You can get git to diff two different files:

git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt