search

Home  >  Q&A  >  body text

github - git刚刚checkout完,重新扫描就出现很多修改

各位帮忙看看是怎么回事啊,使用的是msysgit那个客户端,我用ide也是如此。

伊谢尔伦伊谢尔伦2798 days ago907

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-24 09:13:04

    You can read my blog post http://www.feeyar.com/GIT/git-autocrlf-problem.html To put it simply, you need to set autocrlf in the git configuration to false

    reply
    0
  • ringa_lee

    ringa_lee2017-04-24 09:13:04

    There is this damn line separator problem under the Windows platform. It is generally recommended

    git config --global core.autocrlf false
    

    Also

    git config --global core.safecrlf true
    

    Guarantee that the file's line delimiters are not mixed. Then re-git checkout或者git reset --hardjust in case

    reply
    0
  • Cancelreply