我正在使用以下命令将数据推送到Heroku应用程序。
当我使用
git clone https://git.heroku.com/bigpro.git
cd bigpro
git add .
git commit . -m "my test on commit"
git push heroku master
当我使用
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.
我执行了heroku open
命令,但是出现了一个错误:
▸ ENOTFOUND: getaddrinfo ENOTFOUND api.heroku.com api.heroku.com:443
当我遇到上述错误时,我尝试在终端中使用命令 heroku git:clone -a bigpro
进行更改,并在更改后使用命令 git push heroku master
,但是我收到了一个错误信息。
remote: ! Push rejected to bigpro. remote: To git.heroku.com/bigpro.git !
[remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git.heroku.com/bigpro.git';