2012-12-20 64 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