1.生成ssh(以下命令皆在终端(Terminal)里输入)
ssh-keygen -t rsa -C “xxxxx@xxxxx.com” (这里为你注册码云的邮箱)
2.查看你生成的public key
cat ~/.ssh/id_rsa.pub
(复制下来,以ssh-rsa 开头,以账号的注册邮箱结尾的)
3.复制到码云上
4.添加后,在终端(Terminal)中输入
ssh -T git@gitee.com
完成了
码云官网上的教程链接地址
https://gitee.com/help/articles/4181#article-header0