github - 在 github 上更改用户名后 Heroku 出错
问题描述
首先,这可能与用户名更改无关,但这似乎是最可能的原因。
在 Github 上更改我的用户名后,我正在尝试更新我的 heroku 应用程序上的代码。推送到 Heroku 后,我得到以下信息。
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.heroku.com/appname.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解决方案
git pull
默认情况下,会从origin
(可能指 GitHub)中提取,而不是heroku
.
检查您的遥控器:
git remote -v
试一试git pull heroku
推荐阅读
- android - 内部测试 Google Play 控制台
- java - 无法添加或更新子行:外键约束失败,外键(`doctorid`)参考 Spring JPA 中的`doctors`(`doctorid`)
- vue.js - Aggrid vue i18n:更改语言后不刷新网格标题名称未翻译
- sql - 基于多个条件的 SQL 平均值
- amazon-web-services - 将 PHP Codeigniter 项目转移/迁移到 AWS
- django - pgAdmin4 客户端运行时,Django migrate/makemigrations 不起作用
- javascript - 函数声明后如何分配 JavaScript 变量?
- java - 自动化的 IndexOutOfBoundsException
- java - 首次操作的休眠时间 - 太慢了
- python - 无限加载从新闻网站上抓取标题