相关疑难解决方法(0)

git:更新被拒绝,因为遥控器包含您本地没有的工作

我正在与一些开发人员合作,在BitBucket上使用git.我们都在dev分支机构工作,而不是master直到发布.

其中一个开发人员提交了错误的代码,意外地覆盖了我自己的代码,现在我正在尝试将正确的代码推回到repo.我已经阅读了这个错误几天了,我不能再推送回购,因为我收到以下错误:

 ! [rejected]        master -> dev (fetch first)
error: failed to push some refs to 'https://myusername@bitbucket.org/repo_user/repo_name.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.
Run Code Online (Sandbox Code Playgroud)

我遵循说明 …

git version-control merge commit bitbucket

68
推荐指数
12
解决办法
14万
查看次数

标签 统计

bitbucket ×1

commit ×1

git ×1

merge ×1

version-control ×1