1

我使用 'git pull --rebase' 拉了一些远程并遇到了一些冲突,所以我使用 'git checkout --ours filename' 检查了这些文件的版本。此时“git status”没有显示任何更改,因此我基本上无法完成合并,并且“git rebase --continue”不起作用。现在我的项目的状态是,origin/master 已经在我上次推送的地方分支了,我的 master 分支没有合并。我想在 master 之上重新调整这些拉取的更改。有什么想法可以做到这一点吗?

4

1 回答 1

0

你为什么检查那些文件?不清楚你现在处于什么状态。您需要解决所有合并冲突并在变基时移至下一个提交。

以更手动的方式进行:

// you are on master with clean working dir.
git fetch origin
git rebase origin/master
// commits from your local master are applied one by one in order on top of origin/master.  You resolve all conflicts and proceed with git rebase --continue.
于 2013-08-13T15:41:39.513 回答