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
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.
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:
Job done.
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.
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.
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.
What helped for me was the following: