How to do git tricks: Difference between revisions

From openwfm
(Created page with "git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt")
 
No edit summary
Line 1: Line 1:
==Comparing files
From https://stackoverflow.com/questions/8131135/git-how-to-diff-two-different-files-in-different-branches
<pre>
git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
</pre>
How to link to such comparison view on github?

Revision as of 06:29, 18 January 2019

==Comparing files From https://stackoverflow.com/questions/8131135/git-how-to-diff-two-different-files-in-different-branches

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

How to link to such comparison view on github?