我重新綁定另一個分支到我的結帳分支,並在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