git clone --help
# 以下为截取输入,depth可以指定层数
--depth <depth>
Create a shallow clone with a history truncated to the specified number of commits.
Implies --single-branch unless --no-single-branch is given to fetch the histories near
the tips of all branches. If you want to clone submodules shallowly, also pass
--shallow-submodules.
遇见问题,你可以先执行命令 --help
例子:
git clone --depth=1 https://github.com/c-smile/sciter-sdk
或者你可以点击download下载zip包(只包含代码,不包含版本控制)