What is the purpose of `text=auto` in `.gitattributes` file?

后端 未结 3 1509
一生所求
一生所求 2020-12-22 20:46

Mostly .gitattributes file has * text=auto. What is the purpose of text=auto in that file?

3条回答
  •  忘掉有多难
    2020-12-22 21:13

    That configuration is with regard to how line endings are handled. When enabled, all line endings are converted to LF in the repository. There are other flags to deal with how line endings are converted in your working directory. Full info on the issue us here: https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

提交回复
热议问题