shi*_*hin 5 linux git windows-7
我对git config的core.eol,core.autocrlf,core.safecrlf有点困惑.
http://git-scm.com/docs/git-config
我正在使用Ubuntu和Widows.
我之前有过^ M和其他问题.
谁能为这个问题建议最好的git配置设置?
提前致谢.
Von*_*onC 11
如在Windows上的Git(msysgit)中详细说明 - Unix或DOS行终止,我会使用:
git config --system core.autocrlf false
Run Code Online (Sandbox Code Playgroud)
这样可以避免任何自动的eol转换(参见" Windows上的Git:crlf设置意味着什么? "这个选项值的确切含义).
您可以将其保留为true,如git替换LF与CRLF中所述,但我更喜欢设置core.eol+一些gitattribute文件以微调我想要eol更改的一些文件.
有关详细信息,请参阅此答案.
| 归档时间: |
|
| 查看次数: |
10824 次 |
| 最近记录: |