【问题标题】:Git command to find all the files committed and pushed by others [duplicate]Git命令查找其他人提交和推送的所有文件[重复]
【发布时间】:2012-06-17 02:35:47
【问题描述】:

可能重复:
Using Git how do I find modified files between local and remote

谁能告诉我 Git 命令在我的存储库中查找所有由其他人提交和推送的文件名,而不是由我拉(更新)的文件名。我想在不运行 pull 命令的情况下查看更改的文件。

谢谢。

【问题讨论】:

    标签: git show


    【解决方案1】:

    您可以运行 git fetch 从您的远程服务器获取新提交,但它不会进行合并。所以你可以运行这个..

    git diff master origin/master
    

    你可以通过做得到master需要是origin/master的超集的所有提交的git日志

    git log master origin/master
    

    反之亦然,改变masterorigin/master的位置

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-10-05
      • 1970-01-01
      • 2013-11-11
      • 2020-04-20
      • 2015-02-18
      • 2014-07-13
      • 2023-01-18
      • 2021-12-12
      相关资源
      最近更新 更多