Git pull fails with bad pack header error

前端 未结 4 868
失恋的感觉
失恋的感觉 2020-12-02 13:14

git pull fails with following error

remote: Counting objects: 146, done.
remote: fatal: unable to create thread: Resource temporarily unavailable
error: git          


        
4条回答
  •  有刺的猬
    2020-12-02 14:10

    I was able to resolve this using following steps

    Step 1. clone using lesser depth

    git clone https://your_git_clone_url --depth 3

    Step 2. Edit .git/config and add line for develop. This is required as after setting depth I was not able to switch remote branch other than master

    [core]
        repositoryformatversion = 0
        filemode = false
        bare = false
        logallrefupdates = true
        symlinks = false
        ignorecase = true
    [remote "origin"]
        url = https:
        fetch = +refs/heads/master:refs/remotes/origin/master
        fetch = +refs/heads/develop:refs/remotes/origin/develop  <<--- Add this line
    [branch "master"]
        remote = origin
        merge = refs/heads/master
    [branch "develop"]
        remote = origin
        merge = refs/heads/develop
    

    Step 3: get fetch

提交回复
热议问题