Error pushing to GitHub - insufficient permission for adding an object to repository database

后端 未结 21 2189
孤街浪徒
孤街浪徒 2020-11-27 09:34

I\'m getting back an unusual error while trying to do a \"git push\" to my GitHub repository:

Counting objects: 8, done.
Delta compression using 2 threads.
Compre         


        
21条回答
  •  孤独总比滥情好
    2020-11-27 09:53

    If you still get this error later after setting the permissions you may need to modify your creation mask. We found our new commits (folders under objects) were still being created with no group write permission, hence only the person who committed them could push into the repository.

    We fixed this by setting the umask of the SSH users to 002 with an appropriate group shared by all users.

    e.g.

    umask 002
    

    where the middle 0 is allowing group write by default.

提交回复
热议问题