0

git pull --recurse-submodules

vs.

git submodule update --recursive --remote

I have seen these two been used in the same context when updating/pulling the latest submodules, but I can't find the difference between them and when to use which?

Nermin
  • 749
  • 7
  • 17

1 Answers1

0

The 1st affects (pull) the whole repo and submodules. The 2nd updates only the submodules.

Here is https://stackoverflow.com/a/19621245/418599 a similar question that can be tailored to yours.

Antonio Petricca
  • 8,891
  • 5
  • 36
  • 74