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

Git提示位于当前分支的后面,冲突,git,github,atlassian-sourcetree,Git,Github,Atlassian Sourcetree,我试着为一个失败的司机做些变通,但最终证明这是不必要的。但现在我无法将我的本地版本推送到master。 我是唯一一个更新我的分支的人,但是当我试图修复它时,我在它之后制作了几个版本和分支。我想拒绝所有其他版本,并返回到我的旧工作本地副本,并将其推送到服务器 但当我这样做时,我得到: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags hint: Updates were rejected because

我试着为一个失败的司机做些变通,但最终证明这是不必要的。但现在我无法将我的本地版本推送到master。 我是唯一一个更新我的分支的人,但是当我试图修复它时,我在它之后制作了几个版本和分支。我想拒绝所有其他版本,并返回到我的旧工作本地副本,并将其推送到服务器

但当我这样做时,我得到:

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,将您的分支强制到源分支上