Cd Chen's Services

ba ba ba la~~

git

git push 到 Stash 發生 'fatal: The remote end hung up unexpectedly' 錯誤

公司使用 Stash 一段時間了,最常碰到的問題,就是在做 Initial import 時,往往因為要 push 的資料量太大,而導致無法順利的上傳至 Stash。上傳失敗的錯誤訊息通常是:fatal: The remote end hung up unexpectedly。

如果有發生上述的情況,可參閱 「Git push fails with 'fatal: The remote end hung up unexpectedly'」這篇文章,裡面有提到解決的方法。

git - fatal: The remote end hung up unexpectedly

使用 git push 資料到 HTTP 的 remote 時,如果發生下列的問題:

Counting objects: 1026, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1012/1012), done.
error: RPC failed; result=22, HTTP code = 501
fatal: The remote end hung up unexpectedly
Writing objects: 100% (1026/1026), 3.73 MiB | 4.37 MiB/s, done.
Total 1026 (delta 345), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
Everything up-to-date

可以這樣處理:

git config http.postBuffer 524288000

。完美,結束。

 

A successful Git branching model

今日挖到 "A successful Git branching model",認真看完後,從內心深處感嘆一句:真是好文章啊~~ 

You are here