背景:公司要把項目都從svn遷移到git上
遇到的問題:
POST git-receive-pack (chunked)
error: RPC failed; result=22, HTTP code = 413.14 MiB/s
fatal: The remote end hung up unexpectedly| 1.12 MiB/s
使用命令行git push -u origin master報錯信息如下:
分析:http的方式限制了上傳文件的大小,因為這次上傳的內(nèi)容大多是安裝包昧廷,肯定是超出了限制的憔晒。
解決方案:
1. git config http.postBuffer 524288000
2.在sourcetree強制將路徑切換為ssh
3. 再次執(zhí)行git push -u origin master
至此,上傳成功明吩,上傳了一個小時啊间学,也是醉了
學習鏈接:
http://www.runoob.com/git/git-basic-operations.html
http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000