In my local, I made a git repo out of an existing codebase, which (unbeknownst to me) contained a git repo within it. When this created some scary looking errors about HEAD being corrupt, I went and deleted the .git folder in the inner repo.
Now Bitbucket considers this folder a submodule that points to a repo that I can't access (since it's not mine). However, locally, git submodule
does not recognise any submodules existing.
As naturally follows, any clean pull from this repo just contains an empty folder where the inner repo is.
What I want is to tell Bitbucket to forget about the submodule, and replace that with the folder contents I have in my local copy; effectively "merging" this phantom submodule into the parent repo.
How can I do that?