gpt4 book ai didi

git - 将 github diff 更改为并排比较?

转载 作者:IT王子 更新时间:2023-10-29 01:04:32 26 4
gpt4 key购买 nike

对于 github 网页浏览,它不像许多 diff 工具那样并排显示。我可以将 diff 模式更改为并排模式吗?我的意思是在 github 网络上。

最佳答案

是的,自 2014 年 9 月 3 日起可能:参见“Introducing split diffs”:

https://cloud.githubusercontent.com/assets/98681/4139311/699ef6da-3399-11e4-8d8e-cf0a9e902867.gif

Diffs now come in two flavors, unified and split.
Switch between them on pull request, commit, and compare pages using the toggle in the top right of the page.The mode you last used will become your preferred default.


注意:自2014年9月4日起,它还支持word diff highlights
参见“Does Github have a view that shows diffs between file versions?”。


自 2014 年以来,以及 2020 年引入深色主题 (!),现在的 UI 是:

  • 来自统一:

unified

  • 拆分差异:

split diff

使用:enter image description here

注意:在 URL 末尾添加“&diff=split”会得到相同的结果:拆分差异。

关于git - 将 github diff 更改为并排比较?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15048958/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com