首先,这可能不会被绑定到用户名的变化,但它似乎是最可能的原因。
我试图改变在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