I know there are similar questions, but none of those solutions worked for me, hence creating a new question.
I have the following .gitignore
section:
#generated sources in tfliteparser/tflite
tfliteparser/tflite/
kernels/native_funcs.cpp
However, when I run git status
, both the file and the folder appear in the untracked files section:
Untracked files:
(use "git add <file>..." to include in what will be committed)
../.DS_Store
kernels/native_funcs.cpp
network_summary.dat
tfliteparser/tflite/
I am assuming, that since these objects are in the untracked section, they were never added to the index, right? Why do they appear then?
What I have tried:
git rm --cached kernels/native_funcs.cpp
This gives:
fatal: pathspec 'kernels/native_funcs.cpp' did not match any files
However, this file is there. If I ls
it, OS sees it.
I also tried this. Same result.
I know for a fact, that .gitignore
file gets loaded since if I add network_summary.dat
file to it, it gets ignored.
Any ideas, please?