克隆、拉、推和获取失败,协议错误:包头错误,错误:RPC 失败 GIT

问题描述

我遇到这个问题 2 天了,我一直在坚持。

 $ git clone --branch mybranch https://bitbucket.devops.com/my/pro/ject.git
    cloning into 'ject'...
    remote: Counting objects: 38739,done.
    remote: aborting due to possible repository corruption on the remote side.
    fatal: protocol error: bad pack header
    error: RPC Failed; curl 18 transfer closed with outstanding read data remaining

我做了我在 stackoverflow 中探索的所有选项,但没有一个我有用,但是我的同事在他自己的分支和 PC 上做得很好

这是我的 .gitconfig 文件

[core]
    autocrlf = true
    packedGitLimit = 1g
    packedGitwindowSize = 1g
    compression = 0
[pack]
    windowMemory = 1g
    packSizeLimit = 2g
    deltaCacheSize = 512m
    threads = 1
    window = 0
[http]
    postbuffer = 9999999999
[filter "lfs"]
    clean = git-lfs clean -- %f
    smudge = git-lfs smudge -- %f
    process = git-lfs filter-process
    required = true

感谢阅读,我需要您的建议来修复此错误

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)