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

前端 未结 4 1476
野的像风
野的像风 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 16:43

    Maybe the entire folder permissions are not set,chown -R git:git /your path

    0 讨论(0)
  • 2021-02-07 16:44

    If you are the git administrator, connect on the server hosting the git repository. There, go into objects folder. There should have folder with root owner, which is your problem.

    Change folder owner to be equal to other on the folder (not root).

    0 讨论(0)
  • 2021-02-07 17:06

    The problem comes from the version of NFS your Vagrant NFS mount. You have to use version 4 which is not available in Windows. Use temporarily default synced folders on Windows instead of NFS.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题