Git push error: unpack failed: index-pack abnormal exit

前端 未结 4 1477
野的像风
野的像风 2021-02-07 16:18

I\'m able to pull but Unable to git push

$ git push -u origin master
Counting objects: 2031, done.
Delta compression using up to 4 threads.
Compressing objects:         


        
4条回答
  •  别那么骄傲
    2021-02-07 17:10

    Try using the --no-thin option of git push.

    $ git push --no-thin
    

    From https://git-scm.com/docs/git-push:

    --[no-]thin

    These options are passed to git-send-pack[1]. A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. The default is --thin.

    Our team has struggled with this same issue and has tried all of the fixes/workarounds mentioned in the OP links, with various success. What works for some didn't work for others, nor would it work for the same person a few months later. So far, the --no-thin option has been working well.

提交回复
热议问题