GitLab git user password

前端 未结 19 1264
借酒劲吻你
借酒劲吻你 2020-12-02 22:10

I have just installed GitLab.

I created a project called project-x.

I have created few users and assigned it to the project.

Now I tried to clone:

19条回答
  •  無奈伤痛
    2020-12-02 22:36

    For my case, it turns out the gitlab was runnign in docker, and has port mapping 4022/22.

    Thus I have to edit ~/.ssh/config to specify the port via Port 4022, e.g:

    Host gitlab-local
        Hostname        192.168.1.101
        User git
        Port 4022
        IdentityFile    ~/.ssh/id_rsa.pub
        # LogLevel DEBUG3
    

提交回复
热议问题