I had a directory tree which contained a git repository (which I did not think of at that time).  Then in a father two dirs up I did a git init and tried to add everything in that tree.  It did not add the files in the subdir which already had a .git directory, but I still didn't notice that and just added this directory as well.  (I'm not sure what exactly I typed, but at the time it seemed to me that everything now was done, though I still stayed a little curious why that adding at the top didn't add everything; but I dropped the thought then.)
Now I noticed that cloning that outer repository does not check out the files in the inner repository. After some investigation I found that the inner repository seems to be a submodule of the outer, but somehow not a proper one.
Things like git submodule or git status or git log never mention that inner repository but trying to add a file from the inner repository into the outer repository always states:  fatal: Path 'path/to/innerRepository/somefile' is in submodule 'path/to/innerRepository', even If I remove the inner .git directory.
What I would like to achieve now is get rid of the information that the directory of the inner repository (and all its contents) is part of another repository. I want to forget the old repository and check the files into the new repository.
How can I do that?
 
     
    