Git提交时warning: LF will be replaced by CRLF in WebContent/js/ww.js. The file will have its origina...

Git提交时报错warning: LF will be replaced by CRLF in WebContent/js/ww.js.
The file will have its original line endings in your working directory
解决办法

环境: windows
提交时报错如图所示:

Git提交时warning: LF will be replaced by CRLF in WebContent/js/ww.js. The file will have its origina..._第1张图片

解决办法:

$ git init  
$ git add .

如图:

Git提交时warning: LF will be replaced by CRLF in WebContent/js/ww.js. The file will have its origina..._第2张图片

最终提交成功


Git提交时warning: LF will be replaced by CRLF in WebContent/js/ww.js. The file will have its origina..._第3张图片

==================================================================

分割线

==================================================================
博主为咯学编程:父母不同意学编程,现已断绝关系;恋人不同意学编程,现已分手;亲戚不同意学编程,现已断绝来往;老板不同意学编程,现已失业三十年。。。。。。如果此博文有帮到你欢迎打赏,金额不限。。。

Git提交时warning: LF will be replaced by CRLF in WebContent/js/ww.js. The file will have its origina..._第4张图片

你可能感兴趣的:(Git提交时warning: LF will be replaced by CRLF in WebContent/js/ww.js. The file will have its origina...)