GitLab requires git@localhost password to push to a repo

前端 未结 15 1825
梦毁少年i
梦毁少年i 2020-12-30 03:38

I\'m trying to get GitLab up and running on my server. I followed the installation instructions at the gitlab github page and everything went well.

The issue is, whe

15条回答
  •  伪装坚强ぢ
    2020-12-30 03:51

    I got mixed up with this one time. When you use sudo git, that means the git is being launched as root. The question would be -- did you create SSH key for root and put it inside Gitlab?

    I am guessing that you created your SSH key without sudo (which is for your normal account), put the SSH publickey into Gitlab, and then run sudo git.

    You can try running git without the sudo. And if you have folder permission issues, which made you use sudo in the first place, try giving your user account access to that folder. Or perhaps try the git normally in a folder that you have write permission.

提交回复
热议问题