![使用 git clone 时出错](https://linux22.com/image/874599/%E4%BD%BF%E7%94%A8%20git%20clone%20%E6%97%B6%E5%87%BA%E9%94%99.png)
我正在尝试使用git clone
克隆分叉项目进行编译。输入/输出如下:
preet@Preet-HP-620:~/clones$ git clone [email protected]:Preet23/android_vendor_resurrection.git
Cloning into 'android_vendor_resurrection'...
Warning: Permanently added the RSA host key for IP address '[MY IP]' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
此输出与原样,只是‘[MY IP]’被实际 IP 替换。
答案1
如果您不想使用公钥,您可以始终使用 http 协议访问 github(这可能不是最好的做法,但可以快速解决问题)。
附言:我把这个作为答案,因为我没有太多的声誉来添加评论。