我已經安裝了Windows 7家庭高級版:不能推到Heroku的
gem 1.8.24
ruby 1.9.3p385
node 0.8.19
git 1.8.1.msysgit.
heroku/toolbelt/2.35.0 (i386-mingw32) ruby/1.9.3
我可以succefully登錄Heroku的使用:heroku login
。即使我清除密鑰:heroku keys:clear
並生成新的密鑰heroku keys:add
我已經成功!
當我登錄到heroku網頁 - >我的帳戶我已正確添加密鑰。我作爲協作者添加到項目中。
git remote add heroku-s [email protected]:secret-project.git
問題是,當我試圖文件推送到Heroku的有:
git push heroku-s master
我得到錯誤:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
有什麼建議?
謝謝。我只會添加。在文件夾c:\ users \ account \ .ssh中刪除所有文件(如果您不需要它們)。在生成新密鑰的過程中,當我選擇其他名稱然後默認時,出現了同樣的問題。此後,你應該配置git的「git config --global user.email」[email protected]「 – mpowroznik 2013-02-21 10:58:55