git push error: RPC failed; result=56, HTTP code = 0 ,the remote end hung up unexpectedly


git push的時候發生標題上面的錯誤,不知道怎么解決。搜索了下stackoverflow,上面說是http的postBuffer不夠導致的。

要運行以下命令:

git config --global http.postBuffer 2M

但是,很遺憾,沒有解決,還是同樣的錯誤。


又有的回答說result=56是github網站本身的問題導致的,瞎,我整個下午都是這樣的問題,不可能是github網站本身的問題吧?然后我重新下載最新版的git,重新配置了下SSH key,還是不行。等我解決了就update這文章。。= =!

################################update#####################################

換了個提交方式,不用https了,改用SSH的提交方式就能解決標題錯誤了:
git remote add origin [ssh_url]

如果以上出現了fatal: remote origin already exists. 這個錯誤。

那么刪除它就可以了:
git remote rm origin

然后再運行:
git remote add origin [ssh_url]

然后接着:

git remote set-url origin [ssh_url]

最后再 git push origin -u master




references:

http://stackoverflow.com/questions/22005259/git-push-error-rpc-failed-result-56-http-code-0

http://stackoverflow.com/questions/18436812/why-do-i-get-error-rpc-failed-result-52-http-code-0-fatal-the-remote-end-h

http://blog.csdn.net/dream_loving/article/details/15812311

http://tiku.io/questions/974312/git-efrror-rpc-failed-result-55-http-code-0-on-push

http://blog.csdn.net/dengjianqiang2011/article/details/9260435


免責聲明!

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



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