Git cannot recognize changes to some files

my git does not recognize changes to some files in a particular repo, but it is still work in another repo.
however, changes to some files can also be identified in this repo, such as .gitignore .
this question has nothing to do with editors. I"ve tried different editors.

I found some answers on stack, such as git update-index-- no-assume-unchanged $(git ls-files | tr"\ n"") .
this does solve the problem temporarily, but then something goes wrong after commit.
I also tried to re-clone down, but there was still a problem.

I don"t know how this happened or how to solve it. Let"s ask the bosses: d

Git
Apr.02,2021

has it been gitignore?

see that you solved it using git update-index-- no-assume-unchanged.
means that the file is not tracked, so it is guessed that it is ignore

.
Menu