LF will be replaced by CRLF in package.json.

时间:2021-05-24 16:20:16   收藏:0   阅读:0

问题场景:

代码完成,vscode终端中执行【git add .】准备提交代码,出现如标题警告,截图如下:

技术图片

 

 

解决办法:

在工程目录下添加 .gitattributes 文件,文件内容为: 

package.json text eol=lf

package-lock.json text eol=lf

1 #在工程目录下添加 .gitattributes 文件,文件内容为:
2  
3 package.json text eol=lf
4 package-lock.json text eol=lf

 

囫囵吞枣,不知所以,望大佬赐教!

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!