git用CRLF代替LF

痴心易碎 提交于 2020-07-24 23:36:43

问题:

Running git on a Windows XP machine, using bash. 使用bash在Windows XP计算机上运行git。 I exported my project from SVN, and then cloned a bare repository. 我从SVN导出了我的项目,然后克隆了一个裸存储库。

I then pasted the export into the bare repositories directory, and did a: 然后我将导出粘贴到裸存储库目录中,并执行了:

git add -A

I then got a list of messages saying: 然后我得到一条消息列表:

LF will be replaced by CRLF LF将由CRLF取代

What are the ramifications of this conversion? 这种转变的后果是什么? This is a .NET solution in Visual Studio. 这是Visual Studio中的.NET解决方案。


解决方案:

参考一: https://stackoom.com/question/8Fnm/git用CRLF代替LF
参考二: https://oldbug.net/q/8Fnm/git-replacing-LF-with-CRLF
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!