一、现象:

git add *时出现如下现象:

The file will have its original line endings in your working directory

解决:

Gitshell中输入如下命令解决:

git config --global core.autocrlf false

 git的家目录下面的config文件修改也可以:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
    longpaths = true
    autocrlf = false

 

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2021-05-20
  • 2021-06-11
  • 2021-07-28
猜你喜欢
  • 2021-10-14
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案