1.注册码云
2.下载git,全程点next即可,下载成功可在桌面右键看到这俩选项
3.配置用户信息
git config --global user.name "username"
git config--global user.emall "你的邮箱"
4.配置SSH免密连接
因为我们需要频繁的对码云提交代码所以要配一配
ssh-keygen -t rsa -C "你的邮箱"
输入后三次回车
5.查看密钥
cat ~/.ssh/id_rsa.pub
看到密钥如下,复制密钥
6.登录码云,打开设置界面,点击SSH公钥,添加公钥,将密钥复制进去,创建好后可看到界面如下
7.测试并授权
$ ssh -T git@gitee.com
The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ED25519 key fingerprint is SHA256:+ULzij2u99B9eWYFTw1Q4ErYG/aepHLbu96PAUCoV88.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'gitee.com' (ED25519) to the list of known hosts.
Hi 任刚! You've successfully authenticated, but GITEE.COM does not provide shell access.