当前位置:   article > 正文

【GIT】 运行git命令出现lf will be replaced by crlf 的解决方法_warning: in the working copy of 'pom.xml', lf will

warning: in the working copy of 'pom.xml', lf will be replaced by crlf the n

warning: LF will be replaced by CRLF in application/admin/nginx.htaccess.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in application/task/Log/202205/12_exception.log.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in application/task/nginx.htaccess.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in nginx.htaccess.
The file will have its original line endings in your working directory

  1. //删除.git
  2. rm -rf .git
  3. //禁用自动转换
  4. git config --global core.autocrlf false
  5. git init
  6. git add .

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/950073
推荐阅读
相关标签
  

闽ICP备14008679号