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

前端 未结 16 1409
执念已碎
执念已碎 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:43

    Apart from the the gitignore and other places to check for ignore patterns, check if you had run git update-index --assume-unchanged or git update-index --skip-worktree. If so, unset them.

    Make sure that there is not some weirdness in the repo or parent of the file under concern whereby it has a .git of its own.

    Try doing a clone of your repo and see if you see the same in the cloned one. If so, try cloning onto a different machine / VM and check. That will give you some idea of what's going wrong where.

提交回复
热议问题