刚刚安装了git,然后git clone码云的项目,提示“please make sure you have the correct access rights and the repository exists”

然后百度了资料,才发现无论码云也好,还是github也好。需要为你的账户添加密钥。
首先,执行 ssh-keygen -t rsa -C "名称" ,然后在本地的用户下生成密钥


然后把密钥添加到账户中,上述的第二文件,打开复制。
由于我用的是码云,其它的也一样

把密码添加上去,然后这台计算机就可以使用git服务了。
网友评论