Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在执行“git pull”之前,我想查看要在本地存储库中更新的所有文件。有什么办法吗?
做一个取而不是拉:
git fetch upstream
这将下载更改而不将它们放入您的工作目录。
要比较它们,请执行以下操作:
git diff HEAD upstream/branchname
然后您可以将它们与以下内容合并:
git merge upstream/branchname