我正在使用 Tortoise GIT,并希望放弃最近的提交并恢复到特定的提交。
我的尝试如下。
当我尝试推送时出现错误
[rejected] my branch -> mybranch (non-fast-forward)
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.
我做错了什么?
有关信息,我尝试选择提交并选择还原,但是这在从另一个分支合并的两个提交上失败了。因此,我想跳过还原并重置到这些提交之前的版本。
我无权强制推送。
如果我执行拉动,这只会恢复到原来的头部。
感谢您的帮助。