git错误:找不到repository

down下来的代码,会报错。。。

[!] Error installing LeanCloud

[!] /usr/bin/git clone [email protected]:leancloud/swift-sdk.git /var/folders/xk/v8yr8n7n1mjc4gb339hwj6h80000gn/T/d20160830-16146-n64qrh --template= --single-branch --depth 1

Cloning into '/var/folders/xk/v8yr8n7n1mjc4gb339hwj6h80000gn/T/d20160830-16146-n64qrh'...

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.


解决办法:

重新找到SSH Key,  然后在Github上删掉我以前设置的, 重新上传新的。

git 参考文章:http://blog.csdn.net/u014343528/article/details/48787221

1. 在终端输入ssh-keygen -t rsa -C "username"

之后全部回车, 密码也不需要输入,

git错误:找不到repository_第1张图片

你可能感兴趣的:(git错误:找不到repository)