0

For pull all the submodules from the master branch I'm using this command.

git submodule foreach git pull origin master

How can I pull only one submodule from specific branch?

  • Possible duplicate of [How to only update specific git submodules?](https://stackoverflow.com/questions/16728866/how-to-only-update-specific-git-submodules) – phd Aug 14 '18 at 18:49

1 Answers1

0

You could cd into the location of the submodule that you want to update and then do a git pull origin master from there.

That will only update the one submodule. You can then check in the updated code.

Abizern
  • 146,289
  • 39
  • 203
  • 257