且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

可以将git配置为不对某些文件执行autocrlf吗?

更新时间:2022-11-15 21:10:08

如果将 .gitattributes 文件添加到存储库中的基本级别文件夹,然后显式调出,则看起来可配置哪些文件类型是二进制文件,哪些是文本文件,哪些文本类型应该是CRLF,LF或自动配置.

Looks like this is configurable if you add a .gitattributes file to the base-level folder in your repository, then explicitly call out which file types are binary, which are text, and of the text types, which should be CRLF, LF, or auto configured.

https://help.github.com/articles/dealing-with-line-ends/