2013-08-27 38 views

回答

11

內,您的項目文件夾進入.git/config和看什麼(如果有的話)是heroku遠程下定義。

例如,我的應用程序之一,具有:

[remote "origin"] 
    url = [email protected]:jefflunt/cortex.git 
    fetch = +refs/heads/*:refs/remotes/origin/* 
[branch "master"] 
    remote = origin 
    merge = refs/heads/master 
[remote "heroku"] 
    url = [email protected]:cortex-cedar.git 
    fetch = +refs/heads/*:refs/remotes/heroku-cedar/* 

...其中origin是GitHub庫,master是在github主分支,heroku是名稱和路徑在Heroku庫。

重要的是(a)您有heroku的條目,因爲這是您的推送工作,以及(b)它指向正確的路徑/回購。

要獲得項目的路徑/回購,請轉到您在heroku上的應用程序設置,並將其列出。

請注意,.git/config文件中的這些遠程列表是您在命令行上使用的別名完全可以使用的命令,它們的名稱可以在配置文件中找到。

+0

正在運行'git remote'將heroku列爲遠程(與原點一起),並且它指向正確的git url(我在heroku應用程序設置頁面找到) - 但是仍然導致'未找到存儲庫' –

+0

Can你發佈你的'.git/config'文件的內容呢?這個heroku回購列表頁面的屏幕截圖也會有所幫助。你可以毫無問題地推到'origin'?如果我們無法從中得到任何答案,那麼可能是時候用heroku開個支持票了。 – jefflunt