From: Lars Hjemli Date: Fri, 17 Aug 2007 07:14:45 GMT Subject: Re: using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config) Message-ID: <8c5c35580708170014i5af2da62w1dbcbad71430e26@mail.gmail.com> In-Reply-To: <20070815222907.GA7395@piper.oerlikon.madduck.net> On 8/16/07, martin f krafft wrote: > I have one open question though: why require init? The purpose of 'init' is to inform git-submodule about which submodules you want to checkout. E.g. for a project with submodules in directories 'a', 'b' and 'c', you could do $ git submodule init b c $ git submodule update This would only fetch/checkout the submodules in direcotories 'b' and 'c', while 'git submodule status' would still inform you that there is actually three submodules available. Note: If you wanted to initialize all three submodules at once, you could simply do $ git submodule init -- larsh