TortoiseGit modified sign (icon overlay) is not up

2020-05-12 06:05发布

I have made a small change in some code but TortoiseGit shows it as modified (red exclamation sign) although I have committed, pulled, pushed, but it stays. What should I do here? I have not seen this issue before.

14条回答
Fickle 薄情
2楼-- · 2020-05-12 07:01

The thing that solved this issue for us was that we had moved our Git repos to a mapped network drive, thus changing the drive letter.

It seems that TortoiseGit needs to be set to monitor network drives - it is not the default behaviour.

So to solve this issue you would:

  • Right click a repo folder
  • Choose "TortoiseGit"
  • Choose "Settings"
  • Choose "Icon Overlays"
  • Tick "Network drives"

Job done.

查看更多
我命由我不由天
3楼-- · 2020-05-12 07:01

This might help... My drive letter was B: and the overlay icons would not update. I changed it to beyond C:, (I used M:) and it started working. Looks like TGIT does not drives below C:

查看更多
戒情不戒烟
4楼-- · 2020-05-12 07:03

I think this issue happened for me to due to applications competing for Windows limit icon overlays (I believe it allows a maximum of 15).

This is what I had to do to resolve this issue:

  1. Open regedit and browse to the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers key.
  2. Rearrange the subkeys to that the Tortoise* keys were at the top by prefixing with spaces.
  3. Restart Windows Explorer using Task Manager.

See also: TortoiseGit not showing icon overlays

查看更多
Root(大扎)
5楼-- · 2020-05-12 07:03

After getting astonished by this and trying pretty much everything, I managed to get it fixed by simply deleting one single file from the directory marked as modified, then reverting it from the TortoiseGit menu itself.

P.S. I made sure the CRC64 checksum for the entire directory was identical before and after this operation.

查看更多
一夜七次
6楼-- · 2020-05-12 07:08

I had the same issue at Windows.

Killing TGitCache did work for a couple of seconds but the red icon appeared again.

It turned out the file was renamed (first letter was changed from uppercase to lower case) locally but was not changed in Git. Windows is case insensitive but Git is! So the icon overlay did not match anymore. I did find this out by removing the specific file and selecting "revert" from the Turtoise Git context menu. In the list, two files did show up, one with first letter uppercase, the other complete lowercase.

Finally renaming the file from the Git context menu did resolve the issue for me.

查看更多
迷人小祖宗
7楼-- · 2020-05-12 07:09

What helped for me was the following:

  1. Go to "Settings -> Icon Overlays" Check under "Status cache" the option "none"
  2. Refresh the explorer F5
  3. Go back and change the cache option back to "Default"
查看更多
登录 后发表回答