从HostGator拉取和克隆Git失败

4

我正在开发一个小型的Drupal网站,试图将我的本地Windows计算机上的更改推送到HostGator共享托管帐户(linux),并从该帐户中拉取更改。我在我的计算机上安装了Git Bash,并在其中设置了无密码登录。这似乎运行良好。

以下是我的命令:

git clone "ssh://user@domain.com/~/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
[user@domain.com]$ cd public_html
[user@domain.com]$ git fsck
[user@domain.com]$

我还尝试删除本地和远程Git仓库,重新进行git init并提交所有内容。但是在尝试将存储库克隆到我的机器时,我仍然会收到相同的错误。

为什么我无法从远程站点克隆(或拉取)?我该如何解决这个问题?

2个回答

8

StackExchange最终告诉我,git已经耗尽了内存。(抱歉,我丢失了原始答案!)。我通过ssh到远程机器并运行以下命令来修复错误:

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

这似乎会降低 git 的速度,但至少它可以在我的共享托管账户上正常运行!我认为关键是 threads 部分,但我不确定。


-1

谢谢vpatil!我在翻阅这些帖子时遇到了困难,但我不确定那是我的问题。我在Stack Exchange的其他地方找到了答案,并在下面发布了它。 - Rustavore

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接