'Change github diff to be side by side comparison?

For github web browsing, it is not shown as side by side as lots of diff tool does. Can I change the diff mode to side by side? I mean on the github web.



Solution 1:[1]

Seems it has been moved. (At least when reviewing PR files)

enter image description here

Solution 2:[2]

You can with Octosplit Chrome extension. But you don't get the full length.

Solution 3:[3]

Not git diff, but you can use git difftool, which will call appropriate utility for your platform to do just what you are asking for.

For example, in Linux it will call meld by default, which is very nice tool. git difftool knows about quite a few diffing utilities, but you can also configure it to call your own.

Solution 4:[4]

Github web does not have the feature yet.

You might be interested in term based diff tool ydiff, it has an option -s to yield side-by-side diff.

To view changes not submitted yet, type

ydiff -s

To view change history in your workspace, type

ydiff -ls

To view changes from a pull request, pipe in the raw diff from the url, for example:

curl https://patch-diff.githubusercontent.com/raw/ymattw/ydiff/pull/11.diff | ydiff -s

Solution 5:[5]

Nope, not possible on GitHub at the moment. You can check out other on-line diff tools, such as: http://www.quickdiff.com/, http://www.diffchecker.com/ and http://www.diffnow.com/. These will give you side-by-side diffs, but you have to copy/paste text manually.

Solution 6:[6]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jonathan
Solution 2 huyz
Solution 3 mvp
Solution 4 Mike Pennington
Solution 5 Ivan Zuzak
Solution 6 Tom Dalton