生成ssh key
ssh-keygen -t rsa -C "账号"
比如ssh-keygen -t rsa -C "XXX@qiyi.com"然后回车,然后输入y,然后回车回车
查看公钥
cat ~/.ssh/id_rsa.pub
获取去/Users/XXX/.ssh/id_rsa下查看id_rsa.pub文件的内容即可
然后去gitlab的setting里面去添加
ssh-keygen -t rsa -C "账号"
比如ssh-keygen -t rsa -C "XXX@qiyi.com"然后回车,然后输入y,然后回车回车
查看公钥
cat ~/.ssh/id_rsa.pub
获取去/Users/XXX/.ssh/id_rsa下查看id_rsa.pub文件的内容即可
然后去gitlab的setting里面去添加