2013-11-28 42 views
11

當我鍵入,$git push heroku master,我得到:「混帳推Heroku的主人」 不工作

! No such app as sleepy-headland-6232. 

fatal: Could not read from remote repository. 

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

所以當我做$git remote -v,我得到:

heroku [email protected]:sleepy-headland-6232.git (fetch) 
heroku [email protected]:sleepy-headland-6232.git (push) 
origin [email protected]:fackthisshit/github.git (fetch) 
origin [email protected]:fackthisshit/github.git (push) 

因此我做git remote add heroku [email protected]:sleepy-headland-6232.git

然後我得到fatal: remote heroku already exists.

它就像一個無限循環的g irder。我怎樣才能擺脫這個垃圾洞? (介意我的語言)

+0

如果該應用程序存在於您的帳戶下,請訪問heroku.com,如果不存在,請求所有者將您添加爲合作者。 –

+0

哦..是這個問題嗎? – user3027052

+0

我該怎麼做?店主是一個月的鐵軌mattan griffel。 – user3027052

回答

0

Heroku應用程序不存在。如果您嘗試加載http://sleepy-headland-6232.herokuapp.com的頁面在瀏覽器中,你會得到這樣的信息:

Heroku | No such app 
There is no app configured at that hostname. 
Perhaps the app owner has renamed it, or you mistyped the URL. 

要創建一個新的Heroku應用程序,你可以通過自己的網站做兩個中,像這樣的命令行工具:$ heroku apps:create name_of_your_app

27

您不需要創建新的應用程序,有時當您在Heroku中重命名應用程序時,您將失去與遠程的連接。

要修復它

只是刪除舊的Heroku遠程:

 

    git remote rm heroku 

,並添加新的:

 

    git remote add heroku [email protected]:name-to-the-new-one 

,如果你不知道的鏈接地址,可以在應用程序的設置中使用heroku儀表板。就是這樣。

+2

謝謝!這爲我解決了這個問題,我無意中爲同一個git倉庫創建了多個heroku應用程序。你想在最後添加.git:git remote add heroku [email protected]:name-to-the-new-one.git –