git clone 由于远程端可能的存储库损坏而中止,即使内存设置已正确完成

标签 git github

git 克隆由于远程端可能的存储库损坏而中止 即使内存设置正确完成

我将能够获取我的代码并将其推送到同一个仓库。当我尝试在另一台机器上克隆时它说错误。

这里是 .gitconfig 设置

[pack]
    windowMemory = 1000m
    SizeLimit = 1000m
    threads = 1
    window = 0

错误:

   Cloning into 'auto_shop'...
    stdin: is not a tty
    remote: Counting objects: 3043, done.
    remote: Compressing objects: 100% (2872/2872), done.
    error: pack-objects died of signal 94.62 MiB | 89.00 KiB/s
    error: git upload-pack: git-pack-objects died with error.
    fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
    fratal: early EOF:  31% (966/3043), 5.68 MiB | 223.00 KiB/s
    emote: aborting due to possible repository corruption on the remote side.
    fatal: index-pack failed

此外,git fsck 不会给出任何错误。

# git fsck
Checking object directories: 100% (256/256), done.
Checking objects: 100% (2218/2218), done.
dangling commit 7ae478bea3aa6c42cc8fe865c9fc26b35ea9e15d
dangling commit a657b57b65f63f4ffea1c25c77ff62c94471d41a
dangling commit 3c9ef0ff7818812f506fa1d18ef4af4a90a4938d

请帮我解决这个问题?

最佳答案

成功了,我也在远程端设置了相同的配置。它现在起作用了..

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

关于git clone 由于远程端可能的存储库损坏而中止,即使内存设置已正确完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28810795/

相关文章:

git - 从 fork 推送时 merge 冲突的正确方法?

git 忽略特定目录异常

reactjs - 在同一个存储库中的 github 页面前端和后端上部署 React 应用程序

git - 如何禁用 git-credential-osxkeychain

git - 如何使用 GIT 集成在 Intellij 14 中设置 user.email 和 user.name?

github - jhipster application-prod.yml 在 github 上存储敏感信息

github:没有可用的受支持的身份验证方法

javascript - 从 Github 存储库中隐藏特定变量的最佳实践?

git - 由于吊销服务器离线,吊销功能无法检查吊销

git - 在 Github 上更新我的项目的 Forked 版本