默认的git的承诺消息包括以下内容:如何让我默认的git提交信息使用CRLF行结束
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch testNotepad
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: foo.txt
我有记事本的设置Git中我的默认编辑器。由于行结束符不是CRLF,因此此消息显示为单行。我想改变这一点。如何才能做到这一点?
记事本 - 你的意思是* Windows记事本?你有没有考虑过使用真正的编辑器? – sleske 2014-10-08 19:18:07
@sleske是Windows记事本。我应该可以使用任何我想要的编辑器。我喜欢记事本。如果系统没有被破坏,应该有一个答案。 – 2014-10-08 19:24:09
看起来目前看起来不可能。并不意味着“系统以某种方式被破坏”。这仅仅意味着Git可以支持/不支持它喜欢的任何行结尾。如果确实无法完成,那么您只需更改编辑器或请求/编写该功能。 – jcm 2014-10-09 05:22:57