A
A
Alexey Yarkov2016-05-24 00:18:36
linux
Alexey Yarkov, 2016-05-24 00:18:36

How to make git submodule foreach git pull origin master work?

Moved repositories to bitbucket to make them private. We have two repositories. One is connected to the other as a submodule . We clone the first one and execute the command
$ git submodule foreach git pull origin master
and voila - the second one is pulled up. BUT! This only works locally. The command does not work on VDS. Just an empty folder for the submodule is created. What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toxa82, 2016-05-24
@yarkov

git submodule init
git submodule update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question