git - 运行 git heroku push master 时出现致命错误
问题描述
我已经运行了以下代码,一切都很顺利:
git init
git add .
git commit —m 'name'
heroku create
但是当我运行这段代码时:
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.
解决方案
也许,如此处所示,您在推送之前还需要一个命令:
cd /path/to/repo
heroku git:remote -a yourapp
推荐阅读
- spring - 从另一个项目调用 REST API
- javascript - 如何替换模板字符串中的变量?
- java - 使用Java检查序列是否几乎严格按升序排列
- python - 在集合和字典中使用输入(Python)
- python - 在 Python Pynput 中使用 Key.f5 时,key.char 给出 AttributeError
- android - Google Play 服务位置 API 简单代码不起作用
- django - 根据 ChoiceField 选择启用/禁用 Django 表单字段?
- php - 通过where href 包含一个保存图像内容的 php 变量下载图像
- xamarin.forms - Xamarin.Forms.VideoPlayer 捕获
- html - Edge 不显示背景颜色的十六进制代码