Answer the question
In order to leave comments, you need to log in
How to create a main repository after a submodule in GIT?
Part of the project is already eligible to install a version control system there. and this part in the future should be a submodule.
Now I can initialize the repo there.
let's say it will be /project/some/submodule1/
How then to create a main repo in the root of the project (/project/) and explain to him that the repo located inside is his submodule?
PS demolishing the folder with the submodule, initializing the repo in the main project and cloning the submodule there from the outside is not very suitable, because it will lead to a small, but simple and inoperable part of the project.
Answer the question
In order to leave comments, you need to log in
You need to do exactly as you wrote in "PS", only to reduce downtime, do it on a copy of the project, and then change the original project directory to the copy directory.
In general, your concern about simple is not very clear. Don't have a deployment process? Do you develop directly in production? This is a very harmful practice.
And it seems to me that deploying code using git is also a disastrous practice if you do it this way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question