The git
documentation doesn't make it at all clear what the difference is between a git submodule update
and a git submodule sync
is. I'm also not finding any help out on the web. Can someone help me out with what the difference is here?
update
Update the registered submodules to match what the superproject expects
by cloning missing submodules and updating the working tree of the
submodules. The "updating" can be done in several ways depending on
command line options and the value of submodule.<name>.update
configuration variable.
-
sync
Synchronizes submodules' remote URL configuration setting to the value
specified in .gitmodules. It will only affect those submodules which
already have a URL entry in .git/config (that is the case when they are
initialized or freshly added). This is useful when submodule URLs
change upstream and you need to update your local repositories
accordingly.
For reference, I'm using the git client version 2.11.0