1. 首页
  2. 数据库
  3. 其它
  4. 解决git报错“The file will have its original line endings in your working directory”的

解决git报错“The file will have its original line endings in your working directory”的

上传者: 2021-01-31 21:09:13上传 PDF文件 28.03KB 热度 10次
在执行命令 git commit –all -m ‘说明’ 时报错 “The file will have its original line endings in your working directory” 通过查询后发现出现这个问题主要原因是: 我们从别人github地址上通过git clone下载下来,而又想git push到我们自己的github上,那么就会出现上面提示的错误信息。 此时只需要执行如下代码: git rm -r --cached . git config core.autocrlf false git add . 注意 这里是有 “.”
下载地址
用户评论