How can I initialize / update git submodules on a remote computer?

I often use this template to easily deploy websites:

I have a bare repo that I push / pull from my computer, and this bare repo has a hook after update that automatically makes pulling another repo (real-time version).

However, if I add a submodule to my computer and click it, I need to manually connect to the remote computer and execute init / update.

Is there any way?

+1
source share
1 answer

Do you have the ability to do more than pull on a real server? You can do all this in one (well, technically two) command:

git pull && git submodule update --init --recursive

.

, .

+1

All Articles