2012-01-23 35 views
3

我正在工作一個小型drupal站點,並且我試圖從本地Windows機箱中將更改推送到HostGator(linux)上的遠程共享託管帳戶。我在我的機器上安裝了git bash,並在Git Bash中設置了無密碼登錄。這似乎工作正常。Git從HostGator中拉出並克隆失敗

這裏是我的命令:

git clone "ssh://[email protected]/~/public_html/.git" 

下面是完整的響應:

Cloning into public_html... 
error: git upload-pack: git-pack-objects died with error. 
remote: Counting objects: 3330, done.fatal: git upload-pack: aborting due to possible  repository corruption on the remote side. 

remote: fatal: unable to create thread: Resource temporarily unavailable 
remote: aborting due to possible repository corruption on the remote side. 
fatal: early EOF 
fatal: index-pack failed 

這是我已經試過:

ssh domain.com 
Last login: Mon Jan 23 14:38:07 2012 from xxxx 
[[email protected]]$ cd public_html 
[[email protected]]$ git fsck 
[[email protected]]$ 

我也試着刪除本地和遠程git回購,做另一個git init並提交一切新鮮。試圖將repo克隆到我的機器時,我仍然遇到同樣的錯誤。

爲什麼我無法從遠程站點克隆(或拉)?我如何解決這個問題?

回答

6

StackExchange最終告訴我,git的內存耗盡。 (對不起,我失去了原來的答案!)。我可以通過它ssh方式連接到遠程計算機並運行這些命令來修復錯誤:

git config --global pack.windowMemory "100m" 
git config --global pack.SizeLimit "100m" 
git config --global pack.threads "1" 

這似乎與git放緩,但至少它的作品在我的共享託管帳戶!我認爲關鍵是線索位,但我不確定。

0

你可能想借此在掠奪和url1url2

+0

謝謝vpatil!我很難通過這些線索進行挖掘,但我不確定這是我的問題。我在堆棧交換的其他地方找到了我的答案,我在下面發佈它。 – Rustavore