How to wrap git commit comments?

后端 未结 15 1972
野性不改
野性不改 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:22

    If nano is your preferred editor, then you can set up git to use nano with automatic wrapping at e.g. 72 characters:

    git config --global core.editor "nano -r 72"
    

提交回复
热议问题