git Http 501 錯誤處理
2017年11月3日 星期五
新開一個bratch要push時發生錯誤,訊息如下:HTTP 501 curl 22 Recv failure: Connection was aborted
google一下發現原來Post有限制1MB的限制
文章如下:
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.
文章如下:https://www.kernel.org/pub/software/scm/git/docs/git-config.html
解法如下: 增加postbuffer空間即可,可用以下語法增加
git config --global http.postBuffer 157286400
參考網址:
https://confluence.atlassian.com/stashkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-282988530.html
0 意見:
張貼留言