How to make git log cut long comments?

后端 未结 7 1066
执笔经年
执笔经年 2020-12-14 14:43

I have a git log alias that prints each commit as a single line. Since some people write far too long one-liners in the commit log, many commits wrap to a new line. How can

7条回答
  •  难免孤独
    2020-12-14 15:07

    Late to the party, but these options will do it too:

    $ git config --global core.pager 'less -S'
    

    or (e.g.)

    $ echo $LESS
    -R
    $ export LESS=-RS
    

提交回复
热议问题