git - How to diff the same file between two different commits on the same branch? -
on git, how compare same file between 2 different commits (not contiguous) on same branch (master example)?
i'm searching compare feature 1 in vss or tfs, possible in git?
from git-diff
manpage:
git diff [--options] <commit> <commit> [--] [<path>...]
for instance, see difference file "main.c" between , 2 commits back, here 3 equivalent commands:
$ git diff head^^ head main.c $ git diff head^^..head -- main.c $ git diff head~2 head -- main.c
Comments
Post a Comment