Explorar o código

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

Timo Sand %!s(int64=7) %!d(string=hai) anos
pai
achega
c6eaf3ae24
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pages/common/git-diff.md

+ 4 - 0
pages/common/git-diff.md

@@ -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}}`