码迷,mamicode.com
首页 > Web开发 > 详细

LF will be replaced by CRLF in package.json.

时间:2021-05-24 16:20:16      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:alt   出现   文件   text   代码   loading   info   bsp   添加   

问题场景:

代码完成,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

 

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

 

LF will be replaced by CRLF in package.json.

标签:alt   出现   文件   text   代码   loading   info   bsp   添加   

原文地址:https://www.cnblogs.com/fxwoniu/p/14785071.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!