5
我剛試圖從github推送到heroku,發生這種情況,任何人都知道如何解決這個問題?git push heroku master error:未找到版本庫
$ git push heroku master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
我剛試圖從github推送到heroku,發生這種情況,任何人都知道如何解決這個問題?git push heroku master error:未找到版本庫
$ git push heroku master
ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
內,您的項目文件夾進入.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
文件中的這些遠程列表是您在命令行上使用的別名完全可以使用的命令,它們的名稱可以在配置文件中找到。
正在運行'git remote'將heroku列爲遠程(與原點一起),並且它指向正確的git url(我在heroku應用程序設置頁面找到) - 但是仍然導致'未找到存儲庫' –
Can你發佈你的'.git/config'文件的內容呢?這個heroku回購列表頁面的屏幕截圖也會有所幫助。你可以毫無問題地推到'origin'?如果我們無法從中得到任何答案,那麼可能是時候用heroku開個支持票了。 – jefflunt