我想在 gihub 上的 heroku 上推送代码
我使用了以下命令
git push heroku mybranch:master
错误是
To https://github.com/user/lyricle-new.git
! [rejected] lyricle-frt-backend -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/user/app.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and merge the remote changes
hint: (e.g. 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
使用提示中提到的命令git pull
,响应为Already up-to-date.
此错误背后的原因可能是什么?这是推动heroku的正确方法吗