Git is not detecting a file and is not in .gitignore

前端 未结 16 1374
执念已碎
执念已碎 2020-12-05 04:19

I have a file called \"style.css\" and git is not detecting it. It doesn\'t detect it if I delete it either, but it does detect if I change the name of the file. But I need

16条回答
  •  伪装坚强ぢ
    2020-12-05 04:45

    I encountered another cause for this. Probably very rare circumstances.

    I copied my entire repository to another folder to work on it. Changes I made to a submodule just weren't being detected by git. Turned out that the .git file in the submodule folder contained an absolute file reference to the original copy. As soon as I corrected the file reference to point to my working copy all was well.

提交回复
热议问题