我将 Sample_App 的第 5 章版本推送到 git,然后当我“git push heroku”时,我得到:
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
! No such app as sample_app.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我已经阅读了一些类似的stackoverflow问题,所以我知道要查看'git remote -v':
heroku git@heroku.com:sample_app.git (fetch)
heroku git@heroku.com:sample_app.git (push)
origin git@github.com:jeffbenner/sample_app.git (fetch)
origin git@github.com:jeffbenner/sample_app.git (push)
我尝试删除 heroku 并重新推送 - 我收到相同的错误消息。
我看着'git config -l':
user.name=jeffbenner
user.email=xxxxx@gmail.com
alias.co=checkout
push.defaults=simple
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=false
remote.origin.url=git@github.com:jeffbenner/sample_app.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
remote.heroku.url=git@heroku.com:sample_app.git
remote.heroku.fetch=+refs/heads/*:refs/remotes/heroku/*
我不知道为什么我不能推送到 Heroku。我已经通过 CLI 重新登录了我的 Github 和 Heroku 帐户。任何方向将不胜感激。