尝试将本地存储库推送到github存储库时出现问题

时间:2013-02-28 04:17:31

标签: git github git-push git-remote

我是git的新手,我在尝试将本地回购推送到github时遇到了重大问题。我用我的github repo SSH地址设置了一个名为origin的远程仓库。然后,当我尝试推动时,我不断遇到以下问题:

Macintosh:thinkful projects adityagorti6$ git remote -v
origin  git@github.com:speedrage56/Thinkful-Repo.git (fetch)
origin  git@github.com: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

任何帮助都将不胜感激。

2 个答案:

答案 0 :(得分:1)

您上传到GitHub的公钥无法使用计算机上的私钥。您应该按照instructions上传公钥。

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

答案 1 :(得分:0)

你是否按照指南在github上设置了一个新的git存储库?我的意思是你必须在github上添加你的公钥,以便稍后可以用它登录,这里有一个显示该过程的链接:

Github guide

希望你得到它的工作:)

相关问题