git

2024-07-03-gitattributes文件

Posted by 雯饰太一 on July 3, 2024

1 如何使用

2 FAQs

2.1 This diff contains a change in line endings from ‘LF’ to ‘CRLF’.

ref:This diff contains a change in line endings from ‘LF’ to ‘CRLF’. · Issue #18225 · desktop/desktop · GitHub

As a fix, you can use git config core.autocrlf input in the required directory.

Better use:
.gitattributes

1
* text eol=lf

This will set the correct settings for all repository users, not locally.