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

后端 未结 21 2212
孤街浪徒
孤街浪徒 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:50

    Try to do following:

    Go to your Server

        cd rep.git
        chmod -R g+ws *
        chgrp -R git *
        git config core.sharedRepository true
    

    Then go to your working copy(local repository) and repack it by git repack master

    Works perfectly to me.

提交回复
热议问题