我在我的功能分支上my-feature
,我运行 rebase 开发分支:
(my-feature)$ git rebase develop
终端显示一堆冲突,detached
现在处于模式:
(detached*)$
我以分离模式解决了这些冲突并提交了它们。然后,我运行git rebase --continue
,但现在 git 再次提示我以下内容:
(detached*)$ git rebase --continue
Applying: my-feature my commit message
No changes - did you forget to use 'git add'?
If there is nothing left to stage, chances are that something else
already introduced the same changes; you might want to skip this patch.
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
所以,我又跑了git rebase --continue
,但同样的信息显示给我,只要我跑,它就是无穷无尽的git rebase --continue
。为什么?那么,在我解决冲突以 rebase 以开发分支后,我应该怎么做?