我们一般在使用码云的时候,都是通过git上传的,但是前提是要确保我们的git是否关联我们的电脑(关练是密钥)
安装好Git后,在桌面右键鼠标——打开“Git Bash”后,
输入 ssh-keygen -t rsa -C "xxxxx@xxxxx.com", 后面的"xxxxx@xxxxx.com"是你自己的邮箱。命令执行后,连续按两次回车键即可生成公钥和私钥。如下

在git命令行使用命令 cat ~/.ssh/id_rsa.pub 查看公钥的内容,并且复制出来,如图:

然后,打开你的游览器,登录码云



点击确定后会让你输入你的码云密码,输入完成后,在命名行窗口输入ssh -T git@gitee.com,如

果返回Success的字样(如图,yes),则说明连接成功了。
网友评论