I have a sub-directory in my repo that stopped tracking changes. I can add abc.php file to any directory above a certain level and git status
returns the expected results, but once I add abc.php to the subdirectory in question (or change an existing file), git status
comes up empty. I believe the subdirectory used to have it's own git repo, but I could be wrong.
I see that git update-index --really-refresh
may be an option, but I'm concerned because I added other git projects to "sibling" directories to the one having an issue. (I didn't do anything within my parent repo to acknowledge these, so hope that's okay too.)
That is, I have
- ...dir/custom (the dir where changes ignored)
- ...dir/sibling1 (sibling dir 1 with own git repo)
- ...dir/sibling2 (sibling dir 2 with own git repo)
Every parent directory in dir and above has no issues and works as expected.
My primary question: should I be concerned about running this given the above structure? I'd also like to ask if there's anything I should do with the repos within the primary repo (i.e. somehow declare them as submodules)?
Thanks.