问题:
warning: in the working copy of , LF will be replaced by CRLF the next time Git touches it warning:
今天上传git时报错,使用Ai;得知;
解决:
将 Git 配置为不自动转换换行符,使用以下命令
我使用该命令就不报错了;
git config --global core.autocrlf false
--global
选项。git 的 Windows 客户端基本都会默认设置 core.autocrlf=true
如果你希望 Git 在 Windows 上自动转换 CRLF 到 LF,但不想在提交时转换回 CRLF,你可以设置:
git config --global core.autocrlf true
如果你在 Unix/Linux 系统上工作,希望 Git 保持 LF 换行符不变,设置为:
git config --global core.autocrlf input
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- huatuoyibo.net 版权所有 湘ICP备2023021910号-2
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务