相关疑难解决方法(0)

获取错误推送到github - 更新被拒绝,因为推送的分支提示在其远程后面

我有一个问题推到另一个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问题和答案,但没有为我工作,仍然得到错误无论如何.

git heroku

13
推荐指数
3
解决办法
3万
查看次数

标签 统计

git ×1

heroku ×1