我从heroku开始,然后开始学习heroku教程。我在windows 7上,使用作为命令行。
我使用的命令是
git clone git://github.com/heroku/ruby-sample.git
cd ruby-sample
heroku login
heroku create
git push heroku master
heroku open该目录被克隆,在heroku login之后,我在命令行中得到了Authentication successful.。在heroku create之后
Creating immense-lowlands-8694... done, stack is cedar
http://immense-lowlands-8694.herokuapp.com/ | git@heroku.com:immense-lowlands-8694.git
Git remote heroku added因此,应用程序被添加到我的heroku帐户。但是git push heroku master. 有的问题我得到了
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.到目前为止我尝试过的
heroku keys,上面写着我的电子邮件ID有一个关键的礼物。heroku keys:add这
Found existing public key: C:/Users/Aseem/.ssh/github_rsa.pub
Uploading SSH public key C:/Users/Aseem/.ssh/github_rsa.pub... done但在那之后,错误并没有结束。
ssh-keygen没有被识别,所以我想这是针对linux的。heroku keys:remove KEY_NAME,然后使用heroku login再次登录,但这也没有解决错误。我能做些什么来解决这个问题?
发布于 2013-09-06 09:25:33
安装了MSysGit而不是git。将C:\Program Files(x86)\Git\bin目录添加到PATH变量中,然后执行this answer所说的操作解决了问题。
https://stackoverflow.com/questions/18577741
复制相似问题