来自HostGator的Git Pull和Clone失败

Rus*_*ore 4 git ssh

我正在使用一个小型drupal站点,我正试图将更改从我的本地Windows机器箱推送到HostGator(linux)上的远程共享主机帐户.我在我的机器上安装了git bash,并在Git Bash中设置了无密码登录.这似乎工作正常.

这是我的命令:

git clone "ssh://user@domain.com/~/public_html/.git"
Run Code Online (Sandbox Code Playgroud)

这是完整的回复:

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
Run Code Online (Sandbox Code Playgroud)

这是我尝试过的:

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]$
Run Code Online (Sandbox Code Playgroud)

我也试过删除本地和远程git repos,做另一个git init并提交一切新鲜的东西.尝试将repo克隆到我的机器时,我仍然遇到同样的错误.

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

Rus*_*ore 7

StackExchange最终告诉我git内存不足.(抱歉,我丢失了原来的答案!).我能够通过sshing到远程计算机并运行这些命令来修复错误:

git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1" 
Run Code Online (Sandbox Code Playgroud)

这似乎减慢了git,但至少它适用于我的共享主机帐户!我认为关键是线程位,但我不确定.