git on windows shows modified files all the time, even for newly cloned repo

前端 未结 6 1954
你的背包
你的背包 2021-02-01 17:28

I am having issues with my git on a windows machine. I always have some git files that are modified in every repo, the files that show as modified are same.

If I clone

6条回答
  •  长情又很酷
    2021-02-01 17:56

    It's line endings issue. Set this on your windows machine:

    git config --global core.autocrlf true
    

提交回复
热议问题