首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >git推heroku大师在heroku失败

git推heroku大师在heroku失败
EN

Stack Overflow用户
提问于 2013-09-02 16:50:52
回答 1查看 2K关注 0票数 0

我从heroku开始,然后开始学习heroku教程。我在windows 7上,使用作为命令行。

我使用的命令是

代码语言:javascript
复制
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之后

代码语言:javascript
复制
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. 的问题我得到了

代码语言:javascript
复制
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

到目前为止我尝试过的

  • This question说要添加键,但是它适用于Linux,在Windows7上不起作用。
  • 我用了heroku keys,上面写着我的电子邮件ID有一个关键的礼物。
  • 就像this answer说的,我试过heroku keys:add

代码语言:javascript
复制
Found existing public key: C:/Users/Aseem/.ssh/github_rsa.pub
Uploading SSH public key C:/Users/Aseem/.ssh/github_rsa.pub... done

但在那之后,错误并没有结束。

  • 我试过this answer说的话,但是ssh-keygen没有被识别,所以我想这是针对linux的。
  • 我尝试删除使用heroku keys:remove KEY_NAME,然后使用heroku login再次登录,但这也没有解决错误。

我能做些什么来解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-09-06 09:25:33

安装了MSysGit而不是git。将C:\Program Files(x86)\Git\bin目录添加到PATH变量中,然后执行this answer所说的操作解决了问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18577741

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档