2012-12-20 148 views
2

我刚完成Hartl的第一章Ruby on Rails教程。之前发布的关于一个小小的连结。现在我开始了第二章。我发誓,我通过这本书所做的一切,但现在当我尝试:无法推送到git集线器

git push -u origin master 

我得到进入我的密码后,下面的消息:

ERROR: repository not found fatal: could not read from remote repository Please make sure you have the correct access rights and that the repository exists.

当我上下装Heroku的工具,我认为它安装了一个我的机器上的第二个Ruby版本。在任何情况下,我现在有两个版本列在All Programs下。这可能会搞砸了吗?这两个版本是Ruby 1.9.2-p2901.9.3-p327。此外,当我打开使用1.9.2命令提示符有一个奇怪的事情在顶部之前,我做任何事情:然后

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

其次是下一行正常的提示。我想知道如果使用我的公钥有一些如何搞砸了。

任何帮助,将不胜感激。

回答

0

,所以我不得不与Windows和红宝石的多个版本太多问题。我会建议卸载所有版本,只安装一个ruby版本。但是这与我猜想的Github问题无关。通过命令行

切换到您的应用程序文件夹和结算:

git remote -v 

它显示你什么是远程位置为你的应用程序。 5块钱就搞定了。您可以通过删除路径:

git remote rm origin 

,或者如果它只是在Heroku:

git remote rm heroku 

,之后再添加正确的远程路径。例如:

git remote add origin [email protected]:foo/bar.git 

希望能解决它。

而且记住,如果你想推到Heroku的使用:

git push heroku master