关于因为git仓库无法克隆的问题;

有时候会遇见一种情况: 在git clone 时,遇见断开连接或者无法连接git源仓库;连接超时的时候;

git clone url(git 仓库源) --depth=n   // n 为想要克隆的层数

来进行浅克隆,以获取最新的n个版本;

如果想获取所有历史版本;

在使用: git fetch -- unshallow;

猜你喜欢

转载自www.cnblogs.com/gushiyoyo/p/10345665.html