2013-02-28 119 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

希望你得到它的工作:)

相關問題