Questions tagged «line-endings»

行尾表示行尾。根据操作系统的不同,行尾不同。





6
如何在Git中标准化工作树行结尾?
我已经克隆了行尾不一致的存储库。我添加了一个.gitattributes,它为我要标准化的文件设置了text属性。现在,当我提交更改时,我收到消息: warning: CRLF will be replaced by LF in FILE. The file will have its original line endings in your working directory. 如何让git为我规范化文件的工作副本?最好我想让git标准化整个工作树。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.