问题:
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
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4278541