相关疑难解决方法(0)

.gitattributes中`*text = auto`和`*text eol = lf`之间的差异是什么?

我一遍又一遍地看着.gitattributes的文档,但我找不到这两者之间的差异的明确答案:

* text=auto

* text eol=lf

text=auto仅用于*或者也可以与特定扩展一起使用?在这种情况下,有什么不同?

*.txt text=auto

*.txt text eol=lf

git gitattributes core.autocrlf

4
推荐指数
1
解决办法
1291
查看次数

“*text=auto”和“*text=auto eol=lf”有什么区别?

我正在阅读有关该.gitattributes文件和强制行结尾的规则,在一些教程中它的写法* text=auto其他教程类似,就像* text=auto eol=lf在文件的第一行一样。

有什么区别吗?第一个到底是做什么的?它甚至强制任何行结尾吗?

另外,在一些存储库中,提到了* text=auto执行 LF 归一化!我不知道这是真的还是假的。

git eol gitattributes

4
推荐指数
1
解决办法
1935
查看次数

标签 统计

git ×2

gitattributes ×2

core.autocrlf ×1

eol ×1