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
> 1)
> git config fetch.recurseSubmodules true && git pull
> 2)
> 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.


Reply via email to