I have a very old git repository (about six years old) and noticed that I wasn't seeing changes I'd made to a file in my git status
output.
I ran the command on the specific file in question:
$ git status Data/schema.sql
$
and got no output! This file has been in the repo since the beginning. Additionally, if I checkout the repo to another directory, the file (strangely enough) appears there.
I saw the same with git diff Data/schema.sql
and git log Data/schema.sql
.
Normally, when something like this happens, it's a gitignore
problem. But even removing my .gitignore
file caused no change in this behavior.
What could cause this behavior?