您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

python – 使用“git push heroku master”时出错

5b51 2022/1/14 8:21:59 python 字数 2145 阅读 544 来源 www.jb51.cc/python

我正在使用以下给定的命令将数据推送到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时

概述

我正在使用以下给定的命令将数据推送到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'; 

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

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

然后你可以做git push heroku master

总结

以上是编程之家为你收集整理的python – 使用“git push heroku master”时出错全部内容,希望文章能够帮你解决python – 使用“git push heroku master”时出错所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶