1. 程式人生 > >使用git提交時報錯:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

使用git提交時報錯:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

bubuko alt buffer 依然 ads .post oba con 分享圖片

技術分享圖片

Delta compression using up to 4 threads.
Compressing objects: 100% (2364/2364), done.
Writing objects: 100% (4329/4329), 1.15 MiB | 11.20 MiB/s, done.
Total 4329 (delta 2657), reused 3050 (delta 1497)
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

問題在於用http提交有上傳大小限制,修改上傳大小限制使用 git config --global http.postBuffer 52428800 後依然報錯;

改為了ssh提交就好了 (git remote -v查詢git的提交地址)

git remote set-url origin ssh://[email protected]/hello/etl.git

使用git提交時報錯:error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large