Answer the question
In order to leave comments, you need to log in
What is the correct way to use git submodules in team development?
Today we faced one inconvenience.
Our project on Kohana. Remote git repository. Several developers, each writes something, commits, and sends it to the repository (push).
Today I needed to install the HTML Purifier module and I followed the recommended path: I added it as a submodule
git submodule add git://github.com/shadowhand/purifier.git modules/purifier
git submodule update --init --recursive
Answer the question
In order to leave comments, you need to log in
They did everything right and yes, you need to do git submodule update --init --recursive in each new repository.
In the future, do git submodule update after changing the commit in the submodule by someone else in order to checkout the necessary files in your copy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question