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

前端 未结 6 1984
你的背包
你的背包 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 18:21

    Just posting it as a answer here because it might help someone else.

    If you have Cygwin and Tortoise Git installed, then it will simply show many files when you try to merge the code with 0 lines added and 0 lines removed which is kind of irritating.

    I tried adding the above options in git config but it did not help.

    You can simply right click on any folder go to

    Tortoise Settings -> General -> Rerun First Time Wizard

    Now here you can change the path to git.exe by pointing to other Git.exe or if you have Gitbash installed you can point to its git.exe also. Just make sure the already existing path should be something from Cygwin/bin/git.exe which should be updated to other git.exe.

提交回复
热议问题