Git-git提交報錯error:RPC failed


git push報如下錯誤

原因:緩存值太小,遠程便捷HTTP傳輸請求數據時最大的緩存字節數,默認時1M字節

解決:

#git config --help(查找報錯原因)

http.postBuffer

           Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size,

           HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.

#git config --global http.postBuffer 524288000

#git global --list

#git push -u origin master


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM