由於自己架git 的repository 沒有像svn來的方便,但是又不能將客戶的程式碼放到github作為公開使用,所以我選了gitlab使用。但是當我用git push 時得到下面的訊息,程式碼就沒有推送上去。
$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (8222/8222), 1.27 MiB | 837 KiB/s, done.
Total 8222 (delta 6060), reused 8181 (delta 6033)
fatal: The remote end hung up unexpectedly
Everything up-to-date
輸入以下指令,調整git系統使用的buffer size
git config http.postBuffer 524288000
之後再下git push 就可以確實將程式碼上傳到gitlab上。
$ git push
Counting objects: 9292, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (2136/2136), done.
error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
Writing objects: 100% (8222/8222), 1.27 MiB | 837 KiB/s, done.
Total 8222 (delta 6060), reused 8181 (delta 6033)
fatal: The remote end hung up unexpectedly
Everything up-to-date
輸入以下指令,調整git系統使用的buffer size
git config http.postBuffer 524288000
之後再下git push 就可以確實將程式碼上傳到gitlab上。
沒有留言:
張貼留言