^在Git提交消息中的M个字符(git commit -v) [英] ^M characters in git commit message (git commit -v)
本文介绍了^在Git提交消息中的M个字符(git commit -v)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个奇怪的问题,在我的git commit消息中出现了很多^ M字符。请找到附件。这不会造成任何问题,只会让人烦透了。
提示表示赞赏。 解决方案
正确的方法,如果您在跨平台环境中使用Git,与Abhijeet的回答相反,则为:
学习并正确配置 core.autocrlf 每个客户端的设置
阅读本地主题为什么应该我在Git中使用core.autocrlf = true?作为良好的起点
I am having a weird problem where lots of ^M characters show up in my git commit message. Please find a screenshot attached. This is not causing any problems, just makes it annoying to read through.
Tips appreciated.
解决方案
"The Proper Way", if you use Git in cross-platform environment, contrary to Abhijeet's answer, is:
Learn and CORRECTLY configure core.autocrlf settings in each client
Read local topic "Why should I use core.autocrlf=true in Git?" as good starting point
这篇关于^在Git提交消息中的M个字符(git commit -v)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文