How to wrap git commit comments?

后端 未结 15 1986
野性不改
野性不改 2020-12-01 01:01

Is there a way to wrap git commit comments (when viewed via git log), so they are not cut off at the end of the line? It seems like there should be a pretty sim

15条回答
  •  孤街浪徒
    2020-12-01 01:23

    There doesn't seem to be any perfect way. A workaround I use is just to pipe the output to more (or less, or cat etc.):

    git log | more
    

    That wraps the long lines at least on my system (however, you miss the color formatting).

提交回复
热议问题