美文网首页iOS 笔记
SourceTree报错(RPC failed; result

SourceTree报错(RPC failed; result

作者: Dayon | 来源:发表于2016-11-17 11:04 被阅读24次

今天用SourceTree上传ShareSDK的静态库到Bitbucket 总是不成功。
最后经过一番百度 Google 最终找到解决方案:
打开终端设置代理:

git config --global http.proxy 23.94.27.117:8080
git config --global https.proxy 23.94.27.117:8080

发现可以正常的拉取代码了,可是在上传代码的时候有出现问题:RPC failed; result=56, HTTP code = 0
继续在终端执行命令:

git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000

问题解决
若还是报错可能是贷款设置过大可尝试缩小带宽

git config --global http.postBuffer 524288
git config --global https.postBuffer 524288

相关文章

网友评论

    本文标题: SourceTree报错(RPC failed; result

    本文链接:https://www.haomeiwen.com/subject/lrjdpttx.html