I’m using TortoiseGit and/or Eclipse’s EGit.
Suppose I modify a file. The icon overlay changes to modified. I then change my mind and edit the file back to it’s previous state. The icon overlay stays as modified.
As I was writing this question, after a couple minutes the icons got back to normal.
Is this how Git is supposed to work? Why?
I’m used to TortoiseSVN, which is smart enough to notice a file is back to it’s original state right away.
No, I would guess that’s just some delay before TortoiseGit and/or Eclipse’s EGit notices the change. Issue the command
git statusfrom your terminal and you will have the correct results immediately.