簡體   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