我有一个问题推到另一个heroku遥控器.
为了检查自己,我将整个项目目录重命名为_backup,然后:
git clone account/repo_name
git remote add repo2 git@heroku.com:repo2.git
git push repo2 branch_abc:master
Run Code Online (Sandbox Code Playgroud)
但我还是得到了
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.
Run Code Online (Sandbox Code Playgroud)
我已经尝试了几个SO问题和答案,但没有为我工作,仍然得到错误无论如何.