在一次使用git clone拉取gitee上的代码时报错 试了好多次依然失败,百度了一下,使用下面这条命令 git clone --depth=1 http://gitlab.xxx.cn/yyy/zzz.git 解决问题。