Pulling git submodules with TortoiseGit

David Marks picture David Marks · Apr 17, 2013 · Viewed 13.8k times · Source

I'm using TortoiseGit to maintain git repository. We have one repo with multiple submodules in each. Everything works fine but when I'm trying to pull main repo, submodules aren't updating. I must pull every submodule one by one.

Is there an option in tortoise to use only one pull command from menu to update all changes in all submodules for repo?

Answer

linquize picture linquize · Feb 3, 2014

(git 1.8.2 or later)

  1. git pull

  2. git submodule update --merge --remote

Here are the corresponding screens of TortoiseGit to perform the task.

enter image description here

enter image description here

enter image description here