I have a cloned repo. There's a directory, call it a/b/c that used to be its own repo, i.e. there was a/b/c/.git/ etc.
Now I want the files managed in the main repo. I don't care about the history in a/b/c, so I deleted the .git dir in a/b/c
But the problem is that git status
is ignoring a/b/c completely. I can't git add
it. It's as though I'd put the path into .gitignore (I haven't).
Obviously before, it made sense for git to ignore a subdir with a .git dir in it, but now how does it know the difference?
Is there somewhere else that ignore files are listed other than .gitignore and .git/info/excludes? There's nothing in the .git/config file?
I've been asked what git status says. Not much:
/path/to/root/dir $ git status
# On branch fred
nothing to commit (working directory clean)
And what git add says. Even less (nothing)
/path/to/root/dir $ git add a/b/c