From the documentation git-clone:
- depth depth
Create a small clone with a story truncated to the specified
- [no-] one branch
, , --branch, . --depth, , -no-single-branch . . HEAD - -single-branch, .
, git submodule add git clone, --single-branch. , git submodule add -b git clone.
( - git submodule add) git clone , ,
git clone -b myBranch --single-branch --depth=1 git@host.com:some/large/repo large_repo
git submodule add -b myBranch git@host.com:some/large/repo large_repo
git []
...
- . , URL. Git, .