我重新绑定另一个分支到我的结帐分支,并在rebase期间发生冲突。我解决了合并冲突。在Git rebase期间解决合并冲突后需要提交吗?
$ git status
rebase in progress; onto 77c951b
You are currently rebasing branch 'test' on '77c951b'.
(all conflicts fixed: run "git rebase --continue")
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: br_boss_buha_faktura/forms/br_boss_buha_faktura_head_dtl.frm
modified: br_boss_buha_faktura/valuelists/br_boss_buha_faktura_client.val
new file: br_boss_buha_faktura/valuelists/br_boss_buha_faktura_client_name.val
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: br_boss_buha_faktura/valuelists/br_boss_buha_faktura_client.val
我需要提交上述解决合并冲突git commit
或者我直接走的更远使用git rebase --continue
?
所以我不需要使用'git commit'?我修复它,然后我只使用'git rebase --continue'? “通常情况下,在主人或分期分支上有一次重逢”,你是什么意思?我在分支'test'上,并在'test'分支上做了'git rebase featureA'。 – 2014-09-30 07:43:40
是的,就像[文档告诉你](http://git-scm.com/docs/git-rebase)。另外,正如@pala所说,你有一个文件没有被分阶段提交。这是意图还是应该成为目前rebase提交的一部分? – rubenvb 2014-09-30 08:58:17
是的,我想,我必须添加'git add br_boss_buha_faktura/valuelists/br_boss_buha_faktura_client.val'文件,因为'git rebase --continue'不起作用,并且我收到消息'您必须编辑所有合并冲突和那么使用git add'将 标记为已解决。 – 2014-09-30 09:29:51