[linux] git clone一个repo,包括它的子模块submodule

How do I "git clone" a repo, including its submodules? - Stack Overflow

git clone git://github.com/foo/bar.git
cd bar
git submodule update --init --recursive

你可能感兴趣的:(linux,git)