有没有一种方法可以在.gitconfig中设置自动添加--recurse-submodules标志来进行git clone?我尝试在.gitconfig中添加以下内容:
[fetch]
recurseSubmodules = true
但是它不起作用。
$ git clone upstream nowyprojekt2
Cloning into 'nowyprojekt2'...
done.
我需要添加--recurse-submodule标志。
$ git clone --recurse-submodule upstream nowyprojekt2
Cloning into 'nowyprojekt2'...
done.
Submodule 'euca2ools' (https://github.com/eucalyptus/euca2ools.git) registered for path 'euca2ools'
Cloning into 'euca2ools'...
remote: Counting objects: 19147, done.
remote: Total 19147 (delta 0), reused 0 (delta 0), pack-reused 19147
Receiving objects: 100% (19147/19147), 22.23 MiB | 450.00 KiB/s, done.
Resolving deltas: 100% (15556/15556), done.
Checking connectivity... done.
Submodule path 'euca2ools': checked out '12c358cd27ff652cb144de124bb5472a74145277'
我的GIT版本:
$ git --version
git version 2.1.0