7

How to update submodules, and with which Git client?

I am currently working with GitKraken.. but it is not friendly to work because you have to open each submodules (one by one) to update 'em and go back git main module and update all submodules.
We are using this workflow (commit, pull and push) for each submodule: is that right?

A Google search did not yield any conclusive answer.

1

1 Answer 1

4

As I illustrated here, the Git command line remains the best (and most complete) option

git config pull.rebase true
git config rebase.autoStash true
git config fetch.recurseSubmodules true

Then, a simple git pull would be enough to update your current branch as well as all the submodules.
Make sure your submodules are tracking a branch, and I have detailed in "", you can do a git submodule update --remote --merge at any time.
You have also the command git submodule foreach to execute commands inside submodules.

Not the answer you're looking for? Browse other questions tagged or ask your own question.