My git doesn't detect file changes on Win10 Pro except if I run this command.
```
git update-index --really-refresh
```
This mean I have to keep using this command in order to track changes every time. I believe something is broken somewhere and I hope someone can help me fix it for good. I am running Win10 Pro and `git version 2.28.0.windows.1`
If I switch to WSL2, then my git is running fine. When back to Win10 command prompt, Visual Studio, VSCode..., my git remain broken. Here are my steps to reproduce the problem with windows command prompt (`cmd`)
```
$ mkdir test
$ cd test
$ echo 123 >> text.txt
$ git init
$ git add .
$ git commmit -m 'init'
$ git log
commit 1eaa480bf3de4129f76688e0d177b55fe13c4aae (HEAD -> master)
Date: Wed Sep 23 16:47:23 2020 -0700
'init'
$ git status
On branch master
nothing to commit, working tree clean
```
### Ok so far so good, now let's change the file content
```
$ echo 456 >> text.txt
$ git diff text.txt # <-- return nothing
$ git status
On branch master
nothing to commit, working tree clean
I do not have .gitconfig settings like you do. You may want to selectively remove each of those settings to identify which is causing the behavior. I'd start with core.ignoreStat since the documentation mentions that it may have issues with files modified outside git.
- My `.gitconfig` looks like this
```
[core]
editor = subl -n -w
preloadindex = true
fscache = true
ignoreStat = true
autocrlf = true
```
So far I have tried:
- Uninstall Git from the control panel, and make sure it's registry entries also removed
- Then reinstall the latest Git.
- I have also tried Windows Terminals, PowerShell, and Git Bash
But it still doesn't work. What else can I do to permanently fix this issue for good? Please help...
--
You received this message because you are subscribed to the Google Groups "git-for-windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/44ab158f-503c-4db8-a461-de4a83e55168n%40googlegroups.com.