像往常一样使用repo init ~ -->repo sync 的形式进行代码仓库下载,但每次下载repo sync都不能执行成功,问题为“The remote end hung up unexpectedly”,亲测,可采用如下方法。
步骤一:Shell下输入如下指令增加缓存
git config http.postBuffer 524288000
git config –list
步骤二:输入以下指令增加等待延迟
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
步骤三:只拉取一层log信息。
repo init [repo仓库链接] --depth=1
执行完上述三层步骤后,进行repo sync -j32,无报错,问题解决。