【问题标题】:Can't find URL for Heroku repository找不到 Heroku 存储库的 URL
【发布时间】:2015-06-12 20:48:09
【问题描述】:

我一直在关注https://github.com/opentok/learning-opentok-ios/tree/basics.step-7,尝试使用 OpenTok SDK 让视频应用程序在 iOS 上运行。

我已经使用https://dashboard.heroku.com/new?template=https%3A%2F%2Fgithub.com%2Fopentok%2Flearning-opentok-php&button-url=https%3A%2F%2Fgithub.com%2Fopentok%2Flearning-opentok-php 发布了一个名为 dongu 的应用程序。我以为 git URL 是 git@heroku.com:dongu.git,但是它不起作用。

Error log:

News-MacBook-Pro:Dongu michaelnares$ git remote add heroku git@heroku.com:dongu.git
News-MacBook-Pro:Dongu michaelnares$ git add --all
News-MacBook-Pro:Dongu michaelnares$ git push heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'git@heroku.com:dongu.git'
News-MacBook-Pro:Dongu michaelnares$ git heroku git:remote -a dongu
git: 'heroku' is not a git command. See 'git --help'.

Did you mean this?
    checkout

我想要做的就是将一个简单的 HTML 文件添加到我的 Heroku 应用程序中,但是我找不到要从中推送到 master 的 URL。有什么办法可以查到吗?

【问题讨论】:

    标签: ios heroku opentok


    【解决方案1】:

    试试

    heroku git:remote -a dongu

    然后

    git push heroku 大师

    【讨论】:

    • 不。 News-MacBook-Pro:~ michaelnares$ heroku git:remote -a dongu ▸ 128:命令失败:git remote ▸ 致命:不是 git 存储库(或任何父目录):.git ▸ News-MacBook-Pro:~迈克尔纳雷斯$
    • 不过没什么大不了的,因为按照该链接中的建议做就可以了。
    • 您似乎进入了错误的目录。如果不是 repo,即使是普通的 Git 也无法添加远程,更不用说 Heroku。如果您想学习 CLI,请参阅:devcenter.heroku.com/articles/git#creating-a-heroku-remote
    【解决方案2】:

    它可能还不是一个 git repo。 先运行git init

    【讨论】:

      【解决方案3】:

      只需按照https://dashboard.heroku.com/apps/dongu/deploy/heroku-git 中的说明就可以了,我不需要知道远程 URL,希望这对遇到此问题的其他人有用。

      【讨论】:

        猜你喜欢
        • 2016-05-10
        • 2015-05-26
        • 2013-08-30
        • 2016-05-29
        • 2020-09-12
        • 1970-01-01
        • 2013-12-11
        • 1970-01-01
        • 2021-03-08
        相关资源
        最近更新 更多