git config --system core.autocrlf false
git config --system core.whitespace cr-at-eol
Run Code Online (Sandbox Code Playgroud)
不允许它更改任何内容或在结尾报告有问题的CR字节.
根据您的操作系统,您有很多选择:
http://help.github.com/line-endings/
那里解释了看似奇怪的行为的原因.基本上代码是共享的(git和github),但操作系统可能不同.由于不同操作系统对待换行的方式不同,因此必须改变...
归档时间: |
|
查看次数: |
2524 次 |
最近记录: |