关于 git:TortoiseGit 覆盖图标为红色但所有文件都已提交

TortoiseGit overlay icon is red but all files are commited

我提交了所有文件,我在 TortoiseGit 中的提交列表是空的,但我的一些文件夹是红色的。

  • 我从任务管理器中杀死了 TGitCache.exe,但什么也没发生。
  • 我重命名了我的文件夹(通过在文件夹名称的末尾添加一个数字)并恢复为主名称,问题仍然存在。
  • 最后,我做了这个解决方法(https://stackoverflow.com/a/42757933/3428078),但它对我不起作用。

有人遇到过这个问题吗?


有些文件可能只是为了以防万一才改名。

正常的 git status 操作不会显示这一点(但 git 本身是区分大小写的,即使在 Windows 上 core.ignorecase=true 也是如此)。

TortoiseGit 的这种行为在 2.5.0 中发生了变化,请参阅 https://tortoisegit.org/docs/releasenotes/#Release_2.5.0.0:

Since TortoiseGit 2.5.0 the icon overlays are case sensitive. if you really want to change this default, you can disable the advanced setting"OverlaysCaseSensitive". This is, however, not the default and not recommended as some git tools such as"git log" are case sensitive on paths and might show an incomplete history.