2013-07-20 24 views
0

我克隆我的回購下來,改變一些東西,並承諾,如何推入heroku?

但是當我要推像教程:

git push heroku master 

它告訴我的意思:

fatal: 'heroku' does not appear to be a git repository 
fatal: Could not read from remote repository. 

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

我敢肯定我已登錄,

因此,如何正確推送我的回購並部署它?

+0

添加'git remote -v'的結果 –

回答

0

從Git的參考(http://gitref.org/remotes/#remote):

「,讓你不必你想用它來進行同步,每次使用遠程存儲庫的完整URL的Git存儲每個遠程別名或暱稱您可以使用git remote命令來管理您關心的遠程回購列表。「

您可以檢查遠程名爲「Heroku的」使用不存在與您的git回購:

git remote -v 

如果它不存在,您需要添加它之前,你可以把更新如下:

git remote add heroku [email protected]:appname.git 

其中appname應該是您的應用的名稱。