Github style split diffs on a command-line

大兔子大兔子 提交于 2019-12-21 12:34:20

问题


Github introduced split diffs in September. Is there any way to see that on a command-line?


回答1:


A typical command line is usually not wide enough to handle this kind of comparison. Note that most of Git is built for 80 character wide terminals. So you would have about ~35 characters per side; I doubt that’s helpful (I already have problems reading unified diffs on a much wider terminal).

Git however gives you the ability to use diff tools, external programs that can do whatever diff you prefer. For example, you could use something like WinMerge on Windows, which uses a split view by default. There are many other programs for it, for every platform, and usually every diff program can be set up to work with Git.



来源:https://stackoverflow.com/questions/27350678/github-style-split-diffs-on-a-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!