码云 添加了公钥还不能git clone 代码

sudo git clone [email protected]:jinbo0504/MEMS.git ./
Cloning into '.'...
Access denied: Access Denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

点看自己的项目—>管理->是否开源
这里写图片描述
点击选择为
这里写图片描述
再重试就ok!

sudo git clone [email protected]:jinbo0504/MEMS.git ./
Cloning into '.'...
remote: Enumerating objects: 477, done.
remote: Counting objects: 100% (477/477), done.
remote: Compressing objects: 100% (376/376), done.
remote: Total 477 (delta 93), reused 465 (delta 91)
Receiving objects: 100% (477/477), 1.81 MiB | 3.13 MiB/s, done.
Resolving deltas: 100% (93/93), done.
Checking connectivity... done.

你可能感兴趣的:(git)