0

While trying to push into git (using source tree) I got the following output:

Pushing to ssh://[email protected]/git/PROJECTNAME
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit

(I used USERNAME & PROJECTNAME & DEVGROUP instead of the real output cause... copyrights...).

After a while, I tried pushing again and this time got the same output as well as this:

! [remote rejected] develop -> develop (unpacker error)

I found more then one answer to a similar problem, such as this, but everything I was able to find stated that I need to use chmod & chgrp commands, which I really don't want to use without good reason. So my question is - why is this problem appearing even if I was able to "git push" before, and how can it be fixed safely, without fear of messing with the settings?

4
  • Has anything changed either locally or remotely about which you are aware? Any coworkers also having this problem? Commented Oct 26, 2015 at 7:48
  • No one else at my office has this problem, although a coworker said that he had a similar problem until he updated source tree, although I don't think it's related
    – Nitzan R
    Commented Oct 26, 2015 at 8:16
  • have you tried git fsck ?
    – Michael
    Commented Oct 26, 2015 at 8:32
  • @Michael yes, I did. didn't really help.
    – Nitzan R
    Commented Oct 26, 2015 at 9:19

0

Browse other questions tagged or ask your own question.