177

I have been using TortoiseGit for almost a full year now. It has been working very well for me until yesterday, when I encountered a problem. I was deleting a folder when Windows Explorer sort of crashed on me (it hung on "discovering items") for over an hour, then I restarted the system.

Since that time (and I am not sure if the incident described has anything to do with it), TortoiseGit has stopped showing icon overlays in explorer. The behaviour is, however, not like any of the others who posted questions here, because:

In the open file dialogue of all programs, the icons still exist (!).

Here is a list of things I tried:

  1. I changed TortoiseGit settings to show different icons.
  2. Reinstall TortoiseGit (uninstall, restart, install, restart).
  3. I deleted all icon overlays starting with "Tortoise" in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer \ShellIconOverlayIdentifiers, then uninstalled TortoiseGit, restarted the computer and reinstalled TortoiseGit.

Edit:

I tried to create a new user on my computer, and the new user has icon overlays working just fine. I am now even more confused.

Nothing helped so far. Any ideas?

8
  • Do you have TortoiseSVN installed?
    – mozgow
    Oct 8, 2014 at 7:23
  • @mozgow No, only TortoiseGit
    – 5xum
    Oct 8, 2014 at 11:40
  • 7
    Same thing happened to me. Mine happened because I installed "Dropbox" on my machine. Dropbox also uses IconOverlays, and they rank higher in the list than TortoiseGit. And since you can only have 15, you might not be seeing them for that reason. Mine start in the list from 19-28, hence my reason for not seeing them. Use Dzhuang's suggestion below to see where your Overlays rank in the list.
    – Chad
    Sep 11, 2015 at 19:02
  • Possible duplicate of TortoiseGit Icon Overlays not showing
    – MrTux
    Feb 15, 2018 at 9:20
  • 2
    @MrTux I'd be curios to know how you consider a question asked August 6 2014 as a duplicate of a question that was asked January 11 2017 (i.e., over 2 years later).
    – 5xum
    Feb 15, 2018 at 9:23

17 Answers 17

165

I had the same problem and I got it to work by following instructions from a forum. What I did was this (copied):

I find solution :) Wrapping with "" all tortoise keys under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers

on 1TortoiseNormal and etc... I understood the problem, seeing as Dropbox and it worked regedit there was the sign ("") to Dropbox but not tortoise. So I added the signs, close explorer.exe and hop it was good :)

So what I did was rename the key 1TortoiseNormal to "1TortoiseNormal" etc. I have no idea why wrapping it inside a double quote makes it work again. Note that a restart of Windows Explorer is required for the changes to take effect.

The original forum is gone, but a good summary is supplied in the comments.

20
  • 43
    It is probably a matter of sorting. The double-quote character is one of the first printable characters, so "DropboxExt1" comes before 1TortoiseNormal, but "1TortoiseNormal" comes before "DropboxExt1". I also tried removing the double-quote from the Dropbox's keys and it worked.
    – user34814
    Nov 18, 2014 at 13:14
  • 7
    Learnt something from Skype entries. Instead of wrapping it around "" (double-quotes) just add a space at the start of the entries. So the entries would be <space-char>1TortoiseNormal and etc ... It is finally a matter of sorting :) it seems.
    – Pratham
    Feb 26, 2015 at 12:09
  • 8
    I also had the same problem after installing dropbox. I found the reason / workaround in this blog clear, however after renaming the tortoise keys they didn't appear to resort to the top of the list .. It took me a little while to realise that the dropbox keys had a space at the front .. so I renamed the tortoise ones to <space>1TortoiseNormal, etc. BLOG: blog.garethjmsaunders.co.uk/2015/03/22/… Aug 7, 2015 at 1:39
  • 12
    @CodyStott It turns out MS is now doing the same... OneDrive icons start with a space as well... In 10 years time after all companies figure out this trick, all key names will start with dozens of spaces... :p Aug 11, 2015 at 12:15
  • 41
    UPDATE: Dropbox now also adds 3 spaces in front... MS please take note (well you already did as OneDrive is using this trick) and take action. This completely sucks. And what's up with this 11/15 icon maximum anyway? It's 2017?!? I don't need yet another UI overhaul... I need stuff like this to get fixed in under 2 decades! Jan 12, 2017 at 10:19
138

Windows will only allow up to 11 icon overlay identifiers, arranged in alphanumeric order - if there are more than 11, these icons will not be displayed.

You can run the following command in a DOS prompt:

regedit /e c:\icons.txt HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers

Then open the file C:\icons.txt. Skip the first two lines, and if Tortoise1Normal and the other *Tortoise* values are not in the top 11 values, their icon overlays will not be shown. The solution provided by @Chi Chan is just a simple way to make Tortoise1Normal rank higher when ordered among all the overlays, you can also rename the values by adding space(s) before Tortoise1Normal, i.e.,

" Tortoise1Normal"

to make them rank higher.

update: for Windows 8, the limit of icon overlays is 15.

17
  • 44
    LOL. So I just upgraded to Windows 10 and my TortoiseGit icons were missing so I searched and found this thread... Turns out that Microsoft probably also read this thread because the OneDrive icons start with a space by default!! How silly of Microsoft that they would resort to that... instead of just building a screen that lets us configure the order / priority of the icon annotations from within Windows settings. Aug 11, 2015 at 12:08
  • 29
    @StijndeWitt GoogleDrive and TortoiseSVN/Git now seem to have upped the ante and added 2 spaces. We're officially in a space race now...
    – icc97
    Jan 10, 2017 at 14:17
  • 20
    @icc97 LOL@'space race'. But DropBox is one step ahead of these amateurs... they add 3 spaces: [....\ DropboxExt01] (edit: SO collapses them into 1 it seems...) Jan 12, 2017 at 10:11
  • 12
    NOTE!! Restart Windows Explorer for the icons to show up. Press Ctrl+Shift+Esc and restart "Windows Explorer" (Optionally restart computer)
    – PhillipPDX
    Mar 3, 2017 at 15:15
  • 10
    I just commented above too but wanted to add here that all the big cloud providers (onedrive, dropbox, google drive) now DYNAMICALLY read the list and will AUTOMATICALLY ADAPT and tleading spaces to "win" the war....until the next one updates and does the same. Mine now have literally all at least FIVE leading spaces!! Also, it's 15 from Vista and later. Apr 15, 2017 at 6:17
55

Windows 10 Solution Steps;

  1. Open regedit

Path :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers

  1. Remove/delete all SkyDrive/OneDrive keys. You may need to take ownership of the keys one by one and give your user full control if you receive an error while trying to delete the keys.

  2. Press Ctrl+Shift+Esc and restart "Windows Explorer" (Optionally restart computer)

  3. All git/svn overlay icons are now visible !

7
  • 1
    This works for me. It seems there is a limit to the number of icon overlays allowed on windows explorer.
    – Yodacheese
    Oct 21, 2015 at 0:40
  • 7
    For whatever reason I couldn't delete OneDrive keys. I just added three spaces to the start of Tortoise keys, rebooted and it worked again.
    – NickH
    Feb 18, 2016 at 8:38
  • 1
    OneDrive puts the keys back in the next time you relog. Sep 11, 2016 at 21:27
  • 5
    Instead of deleting existing keys you can just add two (or more) spaces in front of all Tortoise keys. Will have the same effect - and let you join the space race! Jul 11, 2018 at 6:08
  • This solution works for me. Delete all the onedrive keys and then restart PC, wow, the overlay icons appear!
    – Evan
    Apr 27, 2021 at 1:52
22

Just add one Space(or more if needed) to first Name of Tortoise options to this regedit addersses:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers

for example:

"1TortoiseNormal"

Should change to:

" 1TortoiseNormal"

after a system reboot icons shows currectly.

10

I had installed TortoiseSVN (1.9.5) and msysgit (2.11.0) first on my Windows 10 64-bit machine. TortoiseSVN icons displayed fine.

When I installed TortoiseGit (2.3.0.0) after these two the icons wouldn't display.

I checked HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers and all looked fine. The tortoise icons were in the top 10.

What I used to fix was raised in TortoiseGit issue #692 on GitLab:

  • Open regedit.exe
    • Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer
    • Add a new string value "Max Cached Icons" with value "2000"

closed/restarted explorer and icons display!

3
  • 1
    I found this to be the easiest, fastest and best solution for me (Windows 10).
    – timbo
    Jan 31, 2019 at 21:47
  • This also worked for me. I'd added 5 spaces to all Tortoise entries in the registry then restarted Explorer but didn't work till I tried this answer as well.
    – Geordie
    Oct 6, 2020 at 19:22
  • worked like charm Feb 19, 2022 at 16:10
6

Open regedit.

Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\

You will see some thing like this:

enter image description here

The order is important, and in above example the Dropbox is above Tortoise, which is the cause of this issue.

To fix this I've add one more space charter to Tortoise. You can do what ever you like to move it to the top. So change Tortoise1Normal to Tortoise1Normal.( I suspired when I see that the Tortoise1Normal has many spaces. The guys at tortoises thought that these many spaces make them top in registry !! While dropbox guys beat them as DropBox has high order than Tortoise1Normal. )

The registry will be some thing like this: ( You need to close and reopen regiedit or press F5 to see new sorting)

enter image description here


Finally End Task the explorer and re run it.

2
  • I remember doing this years ago, and it seems it's still the same today (2023). Ended up changing the two spaces before each Tortoise key to four spaces, restarted explorer and bam! Thanks for the reminder!
    – DNT
    Jul 29, 2023 at 22:56
  • You have to remove write permission for SYSTEM from the parent key by taking ownership
    – m12lrpv
    Oct 29, 2023 at 20:30
3

I had this same problem today after uninstalling TortoiseSVN. I rebooted and still no luck so I just went into Control Panel, Uninstall a Program and on the TortoiseGit item I picked 'Repair' and everything is back to normal. I suspect that all of the Tortoise line of apps have some shared registry keys or something.

3

I also had my TortoiseGIT shell icons quit displaying suddenly, I don't remember exactly what led up to it but I found this and tried the registry stuff changing 1TortioiseNormal to "1TortioiseNormal" and so on. That is probably a good thing to do no matter what but icon overlays were still not working.

I am too busy for the blanket answer of "restart the computer" what that says to me is "some service process needs to be restarted but you'd never be able to find it so just restart." Nah.

I also use TortoiseSVN and those icon overlays were still working for me. I looked in my processes tab of task manager and saw I had something called TSVNCache.exe running. No sign of anything similar for git, so on a whim I went over to the applications tab and hit "New Task", entered TGITCache.exe and sure enough that process fired up. From there go back to processes, kill explorer.exe, then go back to applications -> New Task again and fire up explorer.exe.

This has worked for me twice now when my TortoiseGIT icon overlays have quit, so, maybe it will work for someone else.

2

What worked for me was to uninstall Google Drive from my computer. Not sure why yet.

1
  • See my comments above. There is hard coded limit of 15 overlays and Google Drive uses several as does Onedrive, dropbox, and others. Torroise is one of worse using like 10 all by itself leaving almost none for anything else. By removing Google Drive you simply deleted it's overlay reg keys leaving enough "free" of the 15 to finally see the Tortoise icons. Apr 15, 2017 at 6:28
2

I Agree with Chi Chan and I would like to add this as an complementary answer.

It's Dropbox Explorer icons. Here is a registry script to remove them. Save it somewhere, because they will come back!

Note, that the values change from time to time, too. Currently they have 3 spaces before the "DropboxExtXX", before they had only one.

Remove Dropbox Explorer Icons.reg

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt01]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt02]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt03]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt04]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt05]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt06]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt07]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt08]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt09]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\   DropboxExt10]
1

The problem with the leading spaces is that every time you reboot, Dropbox adds another space to its registries, and will be always one step ahead of you.

So I've scheduled a python script found on this post (by Christoph Zwerschke) to execute every time the computer boots. You also have to restart the Explorer after that.

The .bat will look like:

python iconOverlayFixer.py
taskkill /f /im explorer.exe 
start explorer.exe  

And the python script:

#/usr/bin/python3

import os
import winreg as reg

# names of all overlay icons that shall be boosted:

boost = """
    Tortoise1Normal
    Tortoise2Modified
    Tortoise3Conflict
    Tortoise4Locked
    Tortoise5ReadOnly
    Tortoise6Deleted
    Tortoise7Added
    Tortoise8Ignored
    Tortoise9Unversioned
"""

boost = set(boost.split())

with reg.OpenKey(reg.HKEY_LOCAL_MACHINE,
        r'SOFTWARE\Microsoft\Windows\CurrentVersion'
        r'\Explorer\ShellIconOverlayIdentifiers') as base:

    names = set()
    renames = []
    i = 0
    while True:
        try:
            name = reg.EnumKey(base, i)
        except OSError:
            break
        core = name.strip()
        if core in names:
            print('Delete', repr(core))
            reg.DeleteKey(base, name)
        else:
            names.add(core)
            if core in boost:
                core = ' ' + core
            if core != name:
                renames.append((name, core))
        i += 1

    if renames:
        for old_name, new_name in renames:
            print('Rename', repr(old_name), 'to', repr(new_name))
            value = reg.QueryValue(base, old_name)
            reg.CreateKey(base, new_name)
            reg.SetValue(base, new_name, reg.REG_SZ, value)
            reg.DeleteKey(base, old_name)
    else:
        print('Nothing to rename')
1

What is worked for me for Windows 10 is

  1. uninstalling TortoiseGit
  2. cleaning folders and register
  3. installing it once again
  4. rebooting the computer
  5. making random commit even not seeing the red icon
1

I noticed that overlay was managed by TortoiseSVN shell extention. This can be verified using nirsoft ShellEx View. The overlay icons disappears when I disable TortoiseSVN extensions. They apparead back when I re-enable TortoiseSVN (the blue lines in screenshot below)

enter image description here

In ShellEx View, select Options > Filter By Extension Type. Select System in dialog and clic OK. Then you should the TortoiseGit and TortoiseSVN extensions. Make sure all TortoiseSVN entries are enabled.

I hope the may be useful to anyone else.

1
  • By far that was the best option I've tested. When disabling an extension using the tool, at least for the "more than intrusive" OneDrive and Google Drive wil stop stealing the overlays. Auto-updates released thereafter will not harm your settings.
    – mgruber4
    Jan 14, 2022 at 17:59
1

For me (using Windows 10), after I install tortoise git, restarting windows explorer in TaskManager solved the issue.

0

Go To "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers"

Prefix all the Tortoise*** folders with 5 White Spaces(Spacebars) - You may find Tortoise1*** to Tortoise9*** folders

Close the registry window and restart your PC.

It worked for me, i hope it works for others too.

0
  1. Exported registry file, opened in text editor and deleted leading spaces. Added exclamation (!) to front of Tortoise. Saved as Preferred-Shell-Icon-Overlay-Settings.reg
  2. Wrote batch file to delete key and subkeys then restore from *.reg file.
  3. Can run at any time, place in startup folder or write as powershell and place in task scheduler to run upon startup.

batch file:

REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers /F
TIMEOUT 1 > NUL
REG IMPORT "H:\GIT\Preferred-Shell-Icon-Overlay-Settings.reg"

reg file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\!Tortoise8Ignored]
@="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\GoogleDriveSynced]
@="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\DropboxExt01]
@="{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx}"
0

In my case following worked - Go to TortoiseGit -> Settings -> Icon Overlays -> CHECK THE OPTION - Drives A and B and then overlay icons appears without restarting PC

Note: I also uninstalled one drive but I don't think that has any contribution to the solution, you can try that also.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.