2015-04-02 98 views
0

我一直在为一个项目克隆一个模板,我们正在通过cmd进行fork和下载,我按照所有说明设置了这个,但现在当我尝试在我的笔记本电脑上,我不会让我访问它吗?我收到以下错误:在github上为大学项目克隆存储库的问题

Cloning into 'ionic-assignment'... 
Permission denied (publickey). 
fatal: Could not read from remote repository. 

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

回答

1

根据我的经验,这可能意味着您使用ssh并且没有设置ssh密钥。以下是对此的解释:http://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key

如果您使用的是GitHub或BitBucket,则此过程非常简单。

GitHub:https://help.github.com/articles/generating-ssh-keys/

+0

谢谢!还有一个问题,使用cmd和使用Git Bash有什么不同? – 2015-04-02 21:08:29

+0

这些命令在cmd和Git Bash之间是相当不同的。你有没有特别使用其中之一的理由? – 2015-04-02 21:26:34