TortoiseGit modified sign (icon overlay) is not updating

前端 未结 15 2144
我在风中等你
我在风中等你 2021-01-30 08:29

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 her

相关标签:
15条回答
  • 2021-01-30 08:43

    There is a workaround that I have tried:

    Rename the directory of the repository and then change it back and you are good to go!

    As an example: MyComplexProject can be changed to MyComplexProject1 then back to MyComplexProject.

    0 讨论(0)
  • 2021-01-30 08:43

    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.

    0 讨论(0)
  • 2021-01-30 08:47

    When the icons are not updating you can quickly kill the icon overlay cache using the following "Run" command:

    taskkill /f /im tgitcache.exe
    

    The cache process should restart itself automatically. You can even turn this into a desktop shortcut if you notice it happening frequently.

    0 讨论(0)
  • 2021-01-30 08:48

    Kill TGitCache.exe works for me. .... I put this as an answer because I don't have enough reputation points to add it as a comment. But wanted to help further iterate that it is a working solution.

    0 讨论(0)
  • 2021-01-30 08:49

    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.

    0 讨论(0)
  • 2021-01-30 08:54

    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"
    0 讨论(0)
提交回复
热议问题