On Wed, Dec 26, 2012 at 8:57 PM, Konstantin Khomoutov
> On Wed, 26 Dec 2012 12:49:43 +0800
> lei yang <yanglei.f...@gmail.com> wrote:
>> I want others when they "git pull" it also update the submoudles .but
>> below two ways don't work for me
>> git config fetch.recurseSubmodules true && git pull
>> git config alias.pullall '!git pull && git submodule update --init
>> --recursive' ----> it works with git pullall
>> but I don't know how let it work with "git pull"
>> git config alias.pull '!git pull && git submodule update --init
>> --recursive' ---> by remove "all" it doesn't work
> I don't know for sure, but it seems Git aliases do not override
> built-in commands, and I think this is an obviously right thing.
> I see no problem with using `git pullall` to do what you need instead
> of trying to *override* the default. If "pullall" is too long-winded
> for you, make it "pa" instead.
Thanks for the reply.Good question
Because I want to put a submodule in tree, but others may NOT know
this, they often do "git pull" to update.
and don't know it has a submodule there. I don't want to introduce trouble