浅克隆,只拉取最近一次提交历史
git clone --depth 1 <url> 是「配置与初始化」分类下的常用命令,作用是:浅克隆,只拉取最近一次提交历史。
git clone --depth 1 <url>
典型用法如下:git clone --depth 1 https://github.com/user/repo.git。你可以查看本页上方同组的相关命令,或直接复制到终端运行。
git clone --depth 1 https://github.com/user/repo.git