Answer the question
In order to leave comments, you need to log in
Git, submodule how to add to the project correctly?
There is a big project with a bunch of directories. And it was decided to separate some of the directories into different ones in submodule
order to put github
each in its own separate repository. But at the same time, I would not want to move and copy anything anywhere.
But in all the examples it is written how to create submodule
from an existing repository for github
example:
But it is not at all clear how to do the opposite, create from an existing folder .
This option produces errors:git submodule add [email protected]:test test
submodule
mkdir test
git submodule add ./test
mkdir test
git init test
git submodule add ./test
git
what exactly submodule
to send to the desired repository is not at all clear.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question