error: RPC failed; curl 18 transfer closed with outstanding read data remaining

git clone 报错,解决方案
运行下面的命令报错
git clone https://github.com/facebook/WebDriverAgent

error: RPC failed; curl 18 transfer closed with outstanding read data remaining

可能的原因是clone的代码太大
解决方案,在后面加上--depth 1,表示只获取最近一次提交的内容
git clone https://github.com/facebook/WebDriverAgent --depth 1

你可能感兴趣的:(error: RPC failed; curl 18 transfer closed with outstanding read data remaining)