首页 > 解决方案 > 错误:在 heroku 上部署应用程序时,src refspec master 不匹配任何内容

问题描述

以下是我解决此问题的方法:

  1. 先在 Heroku 上做了一个应用,准备好 local_folder 中的所有代码推送进去。
  2. 使用克隆远程应用程序heroku git:clone -a app_name
  3. 然后cd app_name
  4. 然后将所有代码从 local_folder 复制到此文件夹中
  5. 然后git add .
  6. 然后git commit -am "initial commit"
  7. 然后git push heroku master

有没有正式的解决方案来解决这个问题?

标签: pythonherokucmd

解决方案


推荐阅读