2016-06-17 50 views
0

我試圖從我的Ubuntu服務器推送代碼到github repo。但我不斷收到錯誤。致命:內存不足,malloc在Ubuntu服務器github失敗

fatal: Out of memory, malloc failed (tried to allocate 318168757 bytes) 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
fatal: write error: Bad file descriptor 

我也嘗試在.git文件夾下的配置文件中進行更改。

請幫幫我。

+0

看起來像你的服務器達到其RAM的限制。 – Jamesking56

回答

0

你需要更新你的.git/config文件,如下:

[core] 
    packedGitLimit = 128m 
    packedGitWindowSize = 128m 

[pack] 
    deltaCacheSize = 128m 
    packSizeLimit = 128m 
    windowMemory = 128m 

Git on Windows, 「Out of memory - malloc failed」

+2

我已經這樣做了。但不工作。我試圖在亞馬遜EC2中的Ubuntu服務器上拉/推。 –

相關問題