How should I use git diff for long lines?

后端 未结 15 2508
庸人自扰
庸人自扰 2020-12-04 05:37

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 do

15条回答
  •  生来不讨喜
    2020-12-04 05:53

    Since Git 1.5.3 (Sep 2007)

    a --no-pager option has been available.

    git --no-pager diff
    

    How do I prevent git diff from using a pager?

    Example

    Starting with v2.1, wrap is the default

    Git v2.1 Release Notes

提交回复
热议问题