Git最好的CRLF(回车,换行)处理策略是什么?

不打扰是莪最后的温柔 提交于 2020-08-07 18:58:41

问题:

I tried committing files with CRLF-ending lines, but it failed. 我尝试使用CRLF结束行提交文件,但失败了。

I spent a whole work day on my Windows computer trying different strategies and was almost drawn to stop trying to use Git and instead try Mercurial . 我花了整整一天的时间在我的Windows计算机上尝试不同的策略,几乎被迫停止尝试使用Git而是尝试使用Mercurial

Please share only one best practice per answer. 每个答案只能分享一个最佳实践。


解决方案:

参考一: https://stackoom.com/question/iTR/Git最好的CRLF-回车-换行-处理策略是什么
参考二: https://oldbug.net/q/iTR/What-s-the-best-CRLF-carriage-return-line-feed-handling-strategy-with-Git
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!