I have been handed a project from someone else and I am having a hard time to get the repo up and running. It might sound very basic but here is my question:
so I clone the project and I need to do
git submodule init
git submodule update
and it creates link to external repositories which this project is based on. Now if I want to keep the last version of this code and erase the .git (because we will release it to public soon and don't want to share our git footprints) and still have the "git submodule" working, what do I need to do? In the project folder in addition to the .git, there is a file called ".gitmodules" which contains the links to the external repositories. But when I "rm -rf .git" and do a fresh git init to initialize a fresh git copy, the "git submodule init" and "git submodule update" don't do anything. Should I do something else to make a link between the .git and the ".gitmodules" file that I kept in the folder?