繁体   English   中英

Git提示位于当前分支的后面,冲突

[英]Git tip is behind of current branch, conflict

我试图为发生故障的驱动程序提供解决方法,但最终事实证明这不是必需的。 但现在我无法将我的本地版本推送到主版本。 我是唯一一个更新分支的人,但是当我尝试解决此问题时,在此之后我做了几个版本和分支。 我想拒绝所有其他版本,然后返回到我的(较旧的)工作本地副本并将其推送到服务器。

但是当我这样做时:

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个更新(我不想这么做,因为我的本地版本是可行的)。 我也无法“将当前分支重置为此提交”。

使用git push -f将您的分支强制到origin分支上。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM