git報(bào)錯(cuò):error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
如圖:
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date
原因是上傳的文件過(guò)大,網(wǎng)上解決方案很多種,但是親測(cè)有效的是把https傳輸改為ssh即可。
首先查看遠(yuǎn)程倉(cāng)庫(kù):
git remote -v
這里輸出的是https的遠(yuǎn)程倉(cāng)庫(kù)名。
需要把遠(yuǎn)程倉(cāng)庫(kù)修改為ssh:
git remote set-url origin ssh://xxx.xxx@gerrit.xxx.com:23456/example/MyProject
通常,ssh全鏈接可以在gerrit上查到。
如果改為https,則為:文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-755833.html
git remote set-url origin https://xxx.xxx@gerrit.xxx.com/example/MyProject
git查看當(dāng)前分支所屬的遠(yuǎn)程倉(cāng)庫(kù)地址_查看分支的具體地址_zhangphil的博客-CSDN博客文章瀏覽閱讀5k次。git remote -v_查看分支的具體地址https://blog.csdn.net/zhangphil/article/details/113763400git刪除遠(yuǎn)程remote分支_git remote delete-CSDN博客文章瀏覽閱讀3.3k次。git 命令如下:git push origin --delete_git remote deletehttps://blog.csdn.net/zhangphil/article/details/51752334文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-755833.html
到了這里,關(guān)于git報(bào)錯(cuò):error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!