我尝试为失败的驱动程序制定解决方法,但最终证明不需要。但现在我无法推动我的本地版本掌握。 我是唯一一个更新我的分支的人,但是当我试图解决这个问题时,我做了几个版本和分支。我想拒绝所有其他版本并返回我的(较旧的)工作本地副本并将其推送到服务器。
但是当我得到时:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags
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.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
它还希望我拉2次更新(我不想这样做,因为我的本地版本是有效的)。我也无法“将当前分支重置为此提交”。
答案 0 :(得分:1)
使用git push -f强制分支到原始分支。