运行git heroku push master时出现致命错误

问题描述 投票:1回答:1

我已经运行了以下代码,一切顺利:

git init
git add .
git commit —m 'name'
heroku create

但是当我运行这段代码时:

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.
git heroku fatal-error
1个回答
0
投票

也许,就像illustrated here一样,在推送之前还需要一个命令:

cd /path/to/repo
heroku git:remote -a yourapp
© www.soinside.com 2019 - 2024. All rights reserved.