所以我针对主人重新建立了一个分支。然而,
git push --set-upstream origin MyBranch
我明白了
! [rejected] MyBranch -> MyBranch (non-fast-forward)
error: failed to push some refs to 'https://mygit@bitbucket.org/mygit/myproject.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
那么好吧。再次重新定位。顺利完成。然后
git pull
* branch HEAD -> FETCH_HEAD
好的,已经更新了
git push --set-upstream origin MyBranch
再次,错误。我可以强制推动,但我不喜欢丢失东西的风险,老实说,我真的很想知道一个适当的解决方案来解决这个恼人的问题,即使我按照规则手册玩也似乎会发生。