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?
Once you have set up the submodules you can update the repository with fetch/pull like you would normally do. To pull everything including the submodules, use the --recurse-submodules and the --remote parameter in the git pull command .
Use the TortoiseGit Puttykey generator to create a new keypair add your public key to GitHub. Clone/create a new repository. In thee Tortoise repository settings, set your fullname and email. Then in remote menu under the Git configuration menu enter your clone URL and select your PuTTY key.
If you pass --recurse-submodules to the git clone command, it will automatically initialize and update each submodule in the repository, including nested submodules if any of the submodules in the repository have submodules themselves.
(git 1.8.2 or later)
git pull
git submodule update --merge --remote
Here are the corresponding screens of TortoiseGit to perform the task.
I was also able to just right-click on the folder that was the submodule and do a normal Git Pull on that folder.
This pulled just the submodule - so slightly simpler than the (admittedly great) answer above for a single submodule.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With