1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 17:35:28 +02:00

git-diff: Adds comparison of file on current branch to other branch (#1611)

This commit is contained in:
Timo Sand 2017-11-04 11:31:27 +02:00 committed by Agniva De Sarker
parent 14279f02e3
commit c6eaf3ae24

View file

@ -33,3 +33,7 @@
- Compare a single file between two branches or commits:
`git diff {{branch_1}}..{{branch_2}} [--] {{path/to/file}}`
- Compare different files from the current branch to other branch:
`git diff {{branch}}:{{path/to/file2}} {{path/to/file}}`