git clone
克隆现有的代码仓库。 更多信息:https://git-scm.com/docs/git-clone。
- 克隆一个现有的代码仓库到指定目录:
git clone
- 克隆一个现有的代码库和它的子模块:
git clone --recursive
- 仅克隆现有代码仓库的
.git目录:
git clone
- 克隆一个本地的代码库:
git clone
- 静默克隆,不打印任何日志:
git clone
- 克隆一个现有的代码库,只获取默认分支上 10 个最新的提交(对节省时间很有用):
git clone --depth 10
- 克隆一个现有的、特定远程分支的代码库:
git clone --single-branch
- 使用 SSH 命令克隆一个现有的代码库:
git clone core.sshCommand=""
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
