-1

我有这个命令:

git diff -w remotes/origin/dev:"$file" HEAD:"$file"

我想知道如何用工作树而不是 HEAD 来区分它,如下所示:

git diff -w remotes/origin/dev:"$file" WORKTREE:"$file"

也许这样做的方法就是这样?

git diff -w remotes/origin/dev:"$file" "$file"

有人知道吗?

4

1 回答 1

0

这应该做到这一点:

git diff -w remotes/origin/dev:"$file" "$file"
于 2018-10-22T20:26:10.840 回答