We are using github to manage our project. In my project we have two modules one for front-end and one for back-end.
I have one git repo and I am going to push my back-end code in it. Now, I want to make a submodule in that repo and want to push front-end code in it.
Q-> Is it required to make a seperate git repo for front-end and then I have to link it my main repo by running below command ?
git submodule add gitRepoUrl /path/of/submodule
Q-> How can I make a folder of an existing git repo a submodule ? (Do I have to make that folder a git repo first and then have to link it in main repo)
Thanks