我想在Heroku是在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的正確方法
如果像我一樣,你有兩個Heroku應用程序(用於製作和分期),請確保你的本地'staging'分支是最新的'master'分支,然後再嘗試' git push staging:master' –