github - Differences between two versions of the same file in nonadjacent commits in git -
let's have repository commits:
latest-commit before-latest-commit ... some-old-commit let's has file called 1.file
let's looks across various commits:
some-old-commit:
a=1; before-latest-commit:
a=1; b=2; c=3; latest-commit:
a=1; c=3; can somehow view differences between latest-commit , some-old-commit versions of 1.file (preferably on github) , have line c=3; marked new, while went on b left out (as it's irrelevant).
this seems basic, wasn't able achieve desired result.
use:
git diff some-old-commit..latest-commit -- 1.file you'd not able run on github first fetch github in local repository.
Comments
Post a Comment