TortoiseGit图标显示的疑难杂症

看到了网上好多条解决方案大多已经过时
1.使用最新版本的TortoiseGit(2.9.0+),注册表已官方优化,不需要手动修改。
2.查看官方FAQ文档https://tortoisegit.org/support/faq/#ovlonlyfolders
Overlay icons
Why don’t the icon overlays appear?
Don’t forget to reboot your PC after the installation; if you haven’t, please do so now. TortoiseGit is a Windows Explorer Shell extension and will be loaded together with Explorer.
Go to the settings of TortoiseGit (Settings -> Icon Overlays) and activate the icon overlays for at least the fixed drives. The installer does this automatically for the current user (can’t do it for other users…) but since you are using TortoiseGit as a different user than you installed it you need to set this manually.
The number of possible overlay handlers in limited in Windows, please also see The overlay icons appear, but not all of them!.
If the overlay icons are missing only on files and folders are displayed as unmodified, please see Why are the icons only visible on folders (green) and not on files?.
If the overlay icons are just displayed in Windows Explorer, please see Why are the icons only visible in the Windows Explorer?.
(Based on a similar TortoiseSVN FAQ entry.)

↑ Top

The overlay icons appear, but not all of them!
You may find that not all of these icons are used on your system. This is because the number of overlays allowed by Windows is limited to 15. Windows uses 4 of those, and the remaining 11 can be used by other applications. And if you have OneDrive installed, that uses another 5 slots. If you then have another cloud drive tool installed, those slots can be used up. TortoiseGit and TortoiseSVN try to be a “Good Citizen ™” and limit its use of overlays to give other apps a chance.

Normal, Modified and Conflicted are always loaded and visible (if possible!).
Deleted is loaded if possible, but falls back to Modified if there are not enough slots.
ReadOnly is loaded if possible, but falls back to Normal if there are not enough slots.
Locked is only loaded if there are less than 13 overlays already loaded. It falls back to Normal if there are not enough slots.
Added is only loaded if there are less than 14 overlays already loaded. It falls back to Modified if there are not enough slots.
You can check which other apps are using overlays by using Regedit to look at HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers (and also HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers on 64-bit Windows for 32-bit applications).

Other apps which are known to use overlays:

Windows itself. Vista and Win7 use more than XP.
SkyDrive
OneDrive
GDrive
Mega
Dropbox
OwnCloud
many others…
If there are too many overlay handlers installed and TortoiseGit does not show any overlays, you can try to delete some of the installed handlers from the registry. But be careful when editing the registry!

The overlay handler are loaded by the order of the ASCII code. Thus, you need to make sure the Tortoise* overlay handler has a high precedence to be honored. Deletion of other handlers is sometimes a bit tricky. But you can also try to prefix the Tortoise* entries with spaces and/or double quotes (") - in general there seems to be a real war going on who has the most spaces.

Please also see issue #692 and issue #2548 and this answer on StackOverflow for more user reports.

(Based on a similar TortoiseSVN FAQ entry.)

↑ Top

Why are the icons only visible on local and not on network drives?
Go to the Settings -> Icon Overlays and check the drive types for which you want to see overlay icons. Be aware that enabling overlays for network drives will slow down not only TortoiseGit but the whole system.

Based on a similar TortoiseSVN FAQ entry

↑ Top

Why are the icons only visible on folders (green) and not on files?
In case files have no overlay icon and folders are displayed as modified the setting “Show excluded folders as normal” is active. Go to Settings -> Icon Overlays and make sure the path is not on a disabled drive type and is not explicitly excluded as an “Excluded path”.

↑ Top

Why are the icons only visible in the Windows Explorer?
There is a very good answer on StackOverflow.

↑ Top

Why do versioned files show up as unversioned?
There is a very good answer on StackOverflow.

↑ Top

你可能感兴趣的:(bug栈)