This question will not be presenting codes. Because I want to know the proper way of using multiple projects inside one project versioned in git.
Let’s say I have a master project. And I cloned other dependency projects under subdirectories. What is the standard way to do that?
For example:
Let’s say I have cloned WordPress.
Then I cloned latest OpenSource template under themes folder.
And I cloned latest OpenSource plugins under plugins folder.
Each of the sub projects will contain .git folder.
Would I just add them(.git) to .gitignore?
You can use git submodule to manage your subprojects.
Under your master project, execute the following commands to add and clone two subprojects: