Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
更改github上的用户名后Heroku上出现错误_Github_Heroku - Fatal编程技术网

更改github上的用户名后Heroku上出现错误

更改github上的用户名后Heroku上出现错误,github,heroku,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 becaus

首先,这可能与用户名更改无关,但这似乎是最可能的原因

在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

git pull
默认情况下会从
原点
(可能指GitHub)而不是
heroku

使用以下设备检查遥控器:

git remote -v

尝试一个
git pull heroku

你能先尝试运行命令到
git pull
吗?它的响应是“已经更新”吗?你能先尝试运行命令到
git pull
吗?它的响应是“已经更新”git pull heroku master做的。我肯定专注于解决一个不存在的问题。“非常感谢您。”托马斯·威尔逊:太好了!很高兴能在这件事上提供帮助。是希罗库大师干的。我肯定专注于解决一个不存在的问题。“非常感谢您。”托马斯·威尔逊:太好了!很高兴能在这方面提供帮助。