git已解决合并冲突的保存历史记录

问题描述 投票:1回答:1

在我们的存储库中,我们有两个分支,现在已经分歧了一段时间,我需要将它们合并在一起。显然会有很多冲突,希望是次要的...

(foo )$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: some_commit1
Applying: some_commit2
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging some_file.xyz
CONFLICT (content): Merge conflict in some_file.xyz
Failed to merge in the changes.
Patch failed at 0002 some_commit2

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

我想以某种方式保存需要解决的冲突及其解决方案,以便我可以与团队共享这些冲突以进行代码审查,以便我们可以确保在合并中正确完成了所有工作。有什么好方法吗?

git git-rebase merge-conflict-resolution
1个回答
3
投票

看看git rerere。您可能还希望看到SO问题Sharing rerere cache

解决合并冲突后但提交解决方案之前,git rerere diff将向您显示将要记录的解决方案。已提交的解决方案存储在.git / rr-cache

© www.soinside.com 2019 - 2024. All rights reserved.