Git adding "unchanged" files to the stage Git adding "unchanged" files to the stage git git

Git adding "unchanged" files to the stage


check your .gitignore file there must be some pattern matching this file which is excluding file from being staged.Or you can use git add . -f to forcely add these files.


It seems like the assume-unchanged-bit is set for that file. With that bit set, git will not look for changes of that file anymore. Unset it by typing:

git update-index --no-assume-unchanged <file>

After that, git status as well as git add should detect the changed file.