克隆一个大 Git 仓库(3G+),总超时报错。后来使用 git clone --depth=1 xxx.git ,马上克隆成功。此时,本地仓库中只有 master 分支的最后一次提交。如果需要克隆其他分支,可以使用 --branch 选项指定分支名,即:git clone --depth=1 --branch=<branch-name> xxx.git
评论