【发布时间】:2016-04-27 12:44:14
【问题描述】:
【问题讨论】:
标签: git remote-access git-pull
【问题讨论】:
标签: git remote-access git-pull
当您调用git diff 时,它会获取实际更改的文件。因此,当您创建 git status 并且您有一些更改的文件时,您可以看到这些文件的差异。当您拉取某些东西时,您只会得到新的更改,而您没有更改文件。
https://git-scm.com/docs/git-diff
如果您需要该文件的特殊版本,您必须指定版本号。您可以在文档中看到这一点。
git diff [--options] <commit> <commit> [--] [<path>…]
【讨论】: