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

时间:2021-06-15 12:38:06

标签: git bitbucket atlassian-sourcetree large-files

我遇到这个问题 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

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

0 个答案:

没有答案