git 提交、下载出错

git push或者git clone的时候,都可能遇到的问题:

error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out


这是因为文件太大的原因。
如果是push的时候,只需要:
git config http.postBuffer 524288000

如果是clone出错,只需要:
git clone https://git.oschina.net/xxxxxxx/xxx.git –depth=1

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×