【问题标题】:How to compare two files in the same commit that is in the remote branch without switching the current local branch?如何在不切换当前本地分支的情况下比较远程分支中同一提交中的两个文件?
【发布时间】:2022-06-30 19:49:54
【问题描述】:

远程回购已fetched。如何在不切换当前本地分支的情况下比较远程分支中同一提交中的两个文件?

感谢命令行来实现这一目标。

【问题讨论】:

    标签: git


    【解决方案1】:
    git diff origin/branch:path/to/file1 origin/branch:path/to/file2
    

    【讨论】:

      猜你喜欢
      • 2012-11-18
      • 2013-12-13
      • 2010-12-20
      • 2020-02-20
      • 2019-12-13
      • 1970-01-01
      • 2017-04-30
      • 2016-03-09
      • 1970-01-01
      相关资源
      最近更新 更多