如何查看从github上从commit x到y的变化?

发布于 2025-01-31 03:25:52 字数 481 浏览 4 评论 0原文

我正在尝试查看从06E27FD143240E8E4D13B29DB831BEDECE2BF2D3进行的所有修改,以最新的E1C34175B55556AC5CE1E60BA560BA56DBA56DB2493DD9F6B52。我尝试了

https: //github.com/gaganmalvi/kernel_xiaomi_lime/compare/Q:E1C34175B55556AC5CE1E60 D3

和VICE-VESSA,但行不通。

另外,我尝试了

I'm trying to see all modifications made from 06e27fd143240e8e4d13b29db831bedece2bf2d3 to the latest e1c34175b5556ac5ce1e60ba56db2493dd9f6b52. I tried

https://github.com/gaganmalvi/kernel_xiaomi_lime/compare/Q:e1c34175b5556ac5ce1e60ba56db2493dd9f6b52%5E%5E%5E%5E%5E...Q:06e27fd143240e8e4d13b29db831bedece2bf2d3

and vice-versa but it does not work.

Also I tried https://github.com/gaganmalvi/kernel_xiaomi_lime/compare/06e27fd143240e8e4d13b29db831bedece2bf2d3%5E%5E%5E%5E%5E...Q which seems to work but brings changes from 2017, but the changes I want to see are from dec 2020 and beyond.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

明月松间行 2025-02-07 03:25:53

要比较github中的提交,有两个选项,与git diff语法共享语法:

  • a..b显示提交A和B之间的差异(这是等效于diff a b
  • a ... b显示“ A和B的合并基础”和B之间的区别(这确实等于diff $ (merge-base AB) B

GitHub URLs:

To compare commits in GitHub, there are two options, sharing the syntax with the git diff syntax:

  • A..B to show the difference between commit A and B (this is equivalent to diff A B)
  • A...B to show the difference between "merge base of A and B" and B (this is indeed equivalent to diff $(merge-base A B) B

GitHub URLs:

栀子花开つ 2025-02-07 03:25:53

不起作用吗

git diff e1c34175b5556ac5ce1e60ba56db2493dd9f6b52 06e27fd143240e8e4d13b29db831bedece2bf2d3

Does

git diff e1c34175b5556ac5ce1e60ba56db2493dd9f6b52 06e27fd143240e8e4d13b29db831bedece2bf2d3

not work?

深爱不及久伴 2025-02-07 03:25:52

您的比较URL可能是

https://github.com/gaganmalvi/kernel_xiaomi_lime/compare/Q..02ca1a9

Q是该存储库中唯一的分支的名称。它在这里用于存储库的头部。

02CA1A9是2020年12月上次提交后存储库状态的“ Git对象ID”。

github文档用于比较提交的文档

/I.SSTATIC.NET/BVOWZ.JPG“ rel =” nofollow noreferrer“>

Your compare URL could be something like

https://github.com/gaganmalvi/kernel_xiaomi_lime/compare/Q..02ca1a9

Q is the name of the only branch in that repository. It is used here for the HEAD of the repository.

02ca1a9 is the "Git Object ID" for the state of the repository after the last commit in Dec 2020.

GitHub documentation for comparing commits

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文