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

