我有一个问题,无法将代码推送到另一个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.
我尝试了几个stackoverflow上的问题和答案,但对我没有用,仍然无法解决错误。