【发布时间】:2021-02-01 21:12:21
【问题描述】:
我正在尝试运行 git rebase -i 但 git rebase 无法在我的控制台上运行。在这里我给出原因并谈论我的错误?
fatal: It seems that there is already a rebase-merge directory, and
I wonder if you are in the middle of another rebase. If that is the
case, please try
git rebase (--continue | --abort | --skip)
If that is not the case, please
rm -fr ".git/rebase-merge"
and run me again. I am stopping in case you still have something
valuable there.
我非常担心运行 rm -fr ".git/rebase-merge" 以删除 git merge 并再次运行 git rebase -i 是否明智。
【问题讨论】:
-
如果您确定没有另一个 rebase 正在运行,或者,如果您这样做,您不希望该工作,那么在尝试这两个选项时不应该害怕吉特。
-
如果你想中止变基:首先尝试
git rebase --abort。 -
实际上,我想删除我的旧提交,这就是我使用 git rebase -i 的原因
-
我已经尝试过了,但是运行 git rebase --abort 然后运行 git rebase -i
标签: git github git-branch git-rebase git-merge-conflict