windows git出现 warning: LF will be replaced by CRLF in git/.gitignore. 终极解决方案

问题:

warning: LF will be replaced by CRLF in git/.gitignore.

The file will have its original line endings in your working directory.

 

 虽然是个 warning,但是在强迫症看来,还是十分不爽,于是寻找方案,终于找到了这个可以用的,特此记录下。

解决:

git config --global core.autocrlf false

原理:

把自动转换给关掉就行了

posted @ 2020-09-04 16:16  闻海南  阅读(93)  评论(0编辑  收藏