Git – How should I use git diff for long lines

diff()gitword-wrap

I'm running git-diff on a file, but the change is at the end of a long line.

If I use cursor keys to move right, it loses colour-coding—and worse the lines don't line up—making it harder to track the change.

Is there a way to prevent that problem or to simply make the lines wrap instead?

I'm running Git 1.5.5 via mingw32.

Best Answer

Or if you use less as default pager just type -S while viewing the diff to reenable wrapping in less.