这里是heroku的新手。我无法推动heroku掌握部署我的heroku应用程序。
当我输入以下代码时:
git push heroku master
我收到此错误:
error: src refspec master does not match any.
error: failed to push some refs to '[email protected]:evening-scrubland-91960.git'
其中[email protected]:evening-scrubland-91960.git
是我的应用程序的名称。
如果它有帮助,我使用这个网站作为教程:https://devcenter.heroku.com/articles/getting-started-with-python#deploy-the-app
我还使用了以下网站的以下建议:I want make push and get error: src refspec master does not match any
任何建议都会很棒。谢谢。
日志告诉你一切:src refspec master does not match any
意味着在master分支上没有任何提交。
确保您已使用git add命令暂存了更改,并在将它们推送到远程之前使用git commit命令提交了它们。