When submitting reason git add on LF will be replaced by CRLF in problems and solutions

In recent github project newly created when add new framework code, the emergence of LF will be replaced by CRLF in question, the following question screenshots

 

Access to information to know, LF, and FRLF are two different wrap format, warning this specific explanation:

Document workspace should be used CRLF newline. If the introduction of changes to the file when LF, commit changes, git will warn you which files are not pure CRLF files, 
but those files git is not allowed to modify the workspace, but to the staging area (we change to the workspace) were modify. As a result, when we operate git add, as long as the content changes git found there LF line breaks, it will appear this warning.

git Workspace FRLF as the default line break.

So you can use the following code to eliminate the warning:

git config -global core.autocrlf false // disable the automatic conversion

 

Finally, this issue will not be our coding, ease of use it!

 

Guess you like

Origin www.cnblogs.com/PearlRan/p/12017929.html