cd
执行下面的命令-生成密钥,剩下的一直回车就好了
ssh-keygen -t rsa -C "xxx@126.com"查看到自己的保存路径
cat /xx/xx/.ssh/id_rsa.pub复制到gitlab上;添加KEY就好了;