Git:text=auto和";警告:LF将被CRLF替换;

Git:text=auto和";警告:LF将被CRLF替换;,git,core.autocrlf,Git,Core.autocrlf,以下是一个例子: 另一个问题是如何覆盖.gittattributes,而我想知道为什么会发生警告 根据文档,text=auto进行规范化,即在签入时更改CRLF->LF。它不应该在另一个方向接触文件。换句话说,它的行为应该类似于我有core.autocrlf=input 那么警告是关于什么的呢?Git是否要在我的工作目录中更改LF->CRLF?(这没有意义)或者它告诉我LF将在存储库中?(在这种情况下,信息读错了,不是吗?读一下,但它没有解释警告信息。谈论具体案例。(提交属于合并的一部分…) C

以下是一个例子:

另一个问题是如何覆盖
.gittattributes
,而我想知道为什么会发生警告

根据文档,text=auto进行规范化,即在签入时更改CRLF->LF。它不应该在另一个方向接触文件。换句话说,它的行为应该类似于我有
core.autocrlf=input


那么警告是关于什么的呢?Git是否要在我的工作目录中更改LF->CRLF?(这没有意义)或者它告诉我LF将在存储库中?(在这种情况下,信息读错了,不是吗?

读一下,但它没有解释警告信息。谈论具体案例。(提交属于合并的一部分…)
C:\python-tdl\examples\termbox>git config core.autocrlf
false

C:\python-tdl\examples\termbox>git commit termbox.py
warning: LF will be replaced by CRLF in examples/termbox/termbox.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in examples/termbox/termbox.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in examples/termbox/termbox.py.
The file will have its original line endings in your working directory.
Aborting commit due to empty commit message.