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

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

    Check the repository: $ git remote -v

    origin  ssh://git@example.com:2283/srv/git/repo.git (fetch)
    origin  ssh://git@example.com:2283/srv/git/repo.git (push)
    

    Note that there is a 'git@' substring here, it instructs git to authenticate as username 'git' on the remote server. If you omit this line, git will authenticate under different username, hence this error will occur.

提交回复
热议问题