In Git, how could I compare the same file between two different commits (not contiguous) on the same branch (master for example)?
I'm searching for a compare feature like the one in Visual SourceSafe (VSS) or Team Foundation Server (TFS).
Is it possible in Git?
Best Answer
From the
git-diff
manpage:For instance, to see the difference for a file "main.c" between now and two commits back, here are three equivalent commands: