我一遍又一遍地看着.gitattributes的文档,但我找不到这两者之间的差异的明确答案:
* text=auto
* text eol=lf
也text=auto仅用于*或者也可以与特定扩展一起使用?在这种情况下,有什么不同?
text=auto
*
*.txt text=auto
*.txt text eol=lf
git gitattributes core.autocrlf
我正在阅读有关该.gitattributes文件和强制行结尾的规则,在一些教程中它的写法* text=auto与其他教程类似,就像* text=auto eol=lf在文件的第一行一样。
.gitattributes
* text=auto eol=lf
有什么区别吗?第一个到底是做什么的?它甚至强制任何行结尾吗?
另外,在一些存储库中,提到了* text=auto执行 LF 归一化!我不知道这是真的还是假的。
git eol gitattributes
git ×2
gitattributes ×2
core.autocrlf ×1
eol ×1