Answer by mh sattarian for git diff between two different files
I believe using --no-index is what you're looking for:git diff [<options>] --no-index [--] <path> <path>as mentioned in the git manual:This form is to compare the given two paths on...
View ArticleAnswer by camjocotem for git diff between two different files
If you are using tortoise git you can right-click on a file and git a diff by:Right-clicking on the first file and through the tortoisegit submenu select "Diff later"Then on the second file you can...
View ArticleAnswer by Steven Wexler for git diff between two different files
Specify the paths explicitly:git diff HEAD:full/path/to/foo full/path/to/barCheck out the --find-renames option in the git-diffdocs.Credit: twaggs.git diff <path> <path> will compare two...
View Articlegit diff between two different files
In HEAD (the latest commit), I have a file named foo. In my current working tree, I renamed it to bar, and also edited it.I want to git diff between foo in HEAD, and bar in my current working tree.
View Article