[Solved] git add Error: warning: LF will be replaced by CRLF in ……

Causes and solutions of directory error

Error reporting reason

The file added to the cache contains /, which is escaped by default. A problem will occur at this time

Solution:

git config --global core.autocrlf false

Modify git config , and put core The value of autocrlf is changed to false, that is, it is not escaped by default.

Similar Posts: