gpt4 book ai didi

Git 从 HostGator pull 和克隆失败

转载 作者:太空狗 更新时间:2023-10-29 13:32:53 24 4
gpt4 key购买 nike

我在一个小型 drupal 网站上工作,我正试图将更改从我的本地 Windows 框 pull 和推送到 HostGator (linux) 上的远程共享主机帐户。我已经在我的机器上安装了 git bash,并在 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 并提交所有新鲜内容。尝试将存储库克隆到我的机器时,我仍然遇到相同的错误。

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

最佳答案

StackExchange 最终告诉我 git 内存不足。 (对不起,我失去了原来的答案!)。我能够通过 ssh 到远程机器并运行这些命令来修复错误:

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

这似乎确实会减慢 git 的速度,但至少它可以在我的共享主机帐户上运行!我认为关键是线程位,但我不确定。

关于Git 从 HostGator pull 和克隆失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8978842/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com