git add . 报错The file will have its original line endings in your working directory

1585364631
2023-02-09 / 0 评论 / 419 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2023年02月09日,已超过1160天没有更新,若内容或图片失效,请留言反馈。

AI摘要

在使用git add时出现“The file will have its original line endings”提示,是因不同操作系统换行符差异导致的。可通过执行命令`git config --global core.autocrlf false`关闭自动转换功能来解决。

git add . 报错The file will have its original line endings in your working directory

The file will have its original line endings in your working directory
文件将有原来的线末梢在您的工作目录

分析

根据不同系统的换行符导致

解决方法

git config --global core.autocrlf false
0

评论 (0)

取消