使用"git push heroku master"时出错

And*_*rea 5 python github heroku

我正在使用以下给定的命令将数据推送到heroku应用程序.

git clone https://git.heroku.com/bigpro.git
cd bigpro
git add .
git commit . -m "my test on commit" 
git push heroku master
Run Code Online (Sandbox Code Playgroud)

当我使用时,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.
Run Code Online (Sandbox Code Playgroud)

然后我发出heroku open命令,我得到了一个错误

?    ENOTFOUND: getaddrinfo ENOTFOUND api.heroku.com api.heroku.com:443
Run Code Online (Sandbox Code Playgroud)

当我得到上述错误时,我试图通过使用更改终端上的命令,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'; 
Run Code Online (Sandbox Code Playgroud)

Bur*_*lid 2

首先,安装heroku toolbelt,然后输入heroku login正确设置您的帐户。

接下来,输入Heroku 中应用程序的名称heroku git:clone -a myappmyapp这将拉取存储库并为您正确设置遥控器。

接下来,像往常一样进行更改。

然后你可以做git push heroku master