Huang Rong@DESKTOP-O2VRRQO MINGW64 ~/Documents/git/testgit (master)
$ git add test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
1
2
3
4
5
出现warning: LF will be replaced by CRLF是换行符的原因,解决办法很简单,一行代码,如下配置:
$ git config --global core.autocrlf false
原文连接:https://blog.csdn.net/u012762800/article/details/83941618