I have a git submodule that I would like to become part of my main project (since I have a lot of project specific code that will go into the submodule).
The answer from VonC will delete the submodule folder contents unless you rename the physical folder first - as shown in this answer, whose question was noted to be a duplicate by Chad: