热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

即使内存设置正确完成,gitclone也会因远程端可能存储库损坏而中止

如何解决《即使内存设置正确完成,gitclone也会因远程端可能存储库损坏而中止》经验,为你挑选了1个好方法。

即使内存设置正确完成,git clone也会因远程端可能存储库损坏而中止

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

这是.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

请帮我解决这个问题?



1> logan..:

它工作,我也在远程端设置相同的配置.它现在工作..

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


推荐阅读
author-avatar
一米静心的阳光
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有