首页 > 解决方案 > 我在尝试推送到 Heroku 时遇到错误

问题描述

我遇到了一个错误,我用谷歌搜索了很多,但似乎没有任何效果。我在 Stack Overflow 上尝试过fetchpullpushrebase和许多。我还重新克隆了 repo,看看这是否有帮助,但没有任何效果。

 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://git.heroku.com/repo.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

标签: gitgithubheroku

解决方案


推荐阅读