I don't get why by doing git checkout filename
is not working.
Here are the steps. First, in the terminal:
Now git status
:
I get a bunch of files that are modified. When I try with each of those files to checkout
them I get this (I'll do an example with only 2 files):
Everything seems fine, but when I do a git status
I can see those file again on the modified
list:
So, I don't get. The only thing that came in mind is that another exe is reading and writing those files at every moment, but why not other files? I have a lot of files under src/public
. This happen too if I restart (Windows) and the very first thing that I try is this (without opening IDE's or whatever) If I delete those files, I will remove the from the branch, I can't do that, I just want to remove them as modified
. Any idea?
Edit: My last tries according to @VonC answer were:
274 git restore transpiler.sh
275 git config --global core.autocrlf false
276 git checkout transpiler.sh
277 git restore transpiler.sh
278 git checkout -- transpiler.sh
279 git checkout transpiler.sh
280 git status
still there the file...