我一直在尝试使用 git push heroku master
将我的应用推送到heroku但我不断收到此错误消息。我该怎么办?
error: failed to push some refs to 'https://git.heroku.com/raad-photo-app.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.
答案 0 :(得分:2)
您必须先从遥控器拉出最新的更改,然后才能推动。
有人添加了你本地没有的新代码,你必须首先抓住它。
阅读此问题以了解什么是拉动,为什么需要它 Local branch behind remote branch (pull, rebase, fetch, merge)