gitlab服务器支持http和ssh两种方式对代码进行clone,当采用ssh方式时,需要在本地生成公钥并上传到服务器。
(一)在任意文件夹点击右键,启动Git Bash

(二)输入命令 ssh-keygen -o
,然后一路回车,如果需要可以自己设置密码

(三)输入命令 cat ~/.ssh/id_rsa.pub,并将显示内容拷贝到gitlab的SSH Key管理后台。

400-6288-358 jane@huiyi98.com
Monday - Friday: 9AM - 7PM
Beijing Broadview Technology, Inc.
We are a digital transformation consultancy and engineering company that delivers cutting edge solutions for global organisations and technology startups.
gitlab服务器支持http和ssh两种方式对代码进行clone,当采用ssh方式时,需要在本地生成公钥并上传到服务器。
(一)在任意文件夹点击右键,启动Git Bash
(二)输入命令 ssh-keygen -o
,然后一路回车,如果需要可以自己设置密码
(三)输入命令 cat ~/.ssh/id_rsa.pub,并将显示内容拷贝到gitlab的SSH Key管理后台。