我有一个名为“lemon”的分支。我希望通过以下方式从同行中将变更纳入其中:
git pull --rebase origin lemon
但我不小心跑了:
git pull --rebase origin master
我杀了这个过程之前(大部分)呃。我现在回到我的目录,并尝试运行:
git pull --rebase origin lemon
给我以下输出:
It seems that I cannot create a rebase-apply directory, and
I wonder if you are in the middle of patch application or another
rebase. If that is not the case, please
rm -fr /Users/me/project/.git/rebase-apply
and run me again. I am stopping in case you still have something
valuable there.
所以看起来它是通过做不想要的拉/ rebase的一部分,并且知道某些事情已经发生了。如何取消所取消的内容?以上消息是否告诉我应该运行的命令(rm -fr ..)?
由于
答案 0 :(得分:1)
尝试git rebase --abort
这应该通过取消原始的rebase
来解决这个问题