26 Jan
2014
26 Jan
'14
8:39 p.m.
On Mon, Jan 27, 2014 at 12:18 AM, Peter Dimov
Andrey Semashev wrote:
'git pull' (in superproject) doesn't update submodules. I'm not even sure it fetches their history, but I may be wrong.
'git pull' does update the submodule repositories for me. It doesn't update the files; 'git submodule update' does. What I do is:
git pull git submodule update --init cd libs\mymodule git checkout develop
So basically, 'git pull' for supermodule does 'git fetch' for submodules? Not quite intuitive, but it can speed up things a little. Thanks. What do you do when you want to update the repository when you have local changes? 'git submodule update' would attempt to roll back mymodule to some detached revision, wouldn't it?