我在推送到不同的 heroku 遥控器时遇到问题。
为了检查自己,我将整个项目目录重命名为 _backup,然后:
git clone account/repo_name
git remote add repo2 git@heroku.com:repo2.git
git push repo2 branch_abc:master
但我仍然得到
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.
我已经尝试了几个 SO 问题和答案,但对我没有用,无论如何仍然会收到错误。