2013-02-28 114 views
0

我是git的新品,并且在尝试将本地回购推送到github时遇到主要问题。我用我的github repo SSH地址设置了一个名为origin的远程repo。然后当我尝试推我不断收到以下问题:当试图将本地回购推送到github回购时出现问题

Macintosh:thinkful projects adityagorti6$ git remote -v 
origin [email protected]:speedrage56/Thinkful-Repo.git (fetch) 
origin [email protected]:speedrage56/Thinkful-Repo.git (push) 
Macintosh:thinkful projects adityagorti6$ git push -u origin master 
The authenticity of host 'github.com (207.97.227.239)' can't be established. 
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 
Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts. 
Permission denied (publickey). 
fatal: The remote end hung up unexpectedly 

任何帮助,将不胜感激。

回答

1

您上传到GitHub的公钥并不适用于您计算机上的私钥。您应该按照instructions上传您的公钥。

或者,您可以使用HTTP protocol,但它不适合此任务。

+0

感谢的人,这有助于。 – 2013-02-28 04:43:56

0

你有没有跟着向导设置我的意思是,你必须在GitHub上添加你的公共密钥以便以后可以用它登录在GitHub上?一个新的git仓库,这里是流程的链接:

Github guide

希望你得到它的工作:)

相关问题