在git的notes分支(git-notes)中,是否有解决合并冲突的最佳方法?做某事的通常做法
git pull --rebase origin refs/notes/commits:refs/notes/commits 不管用。我尝试的方法是
git checkout refs/notes/commits
git fetch origin refs/notes/commits:refs/notes/origin/commits
git merge FETCH_HEAD
git update-ref refs/notes/commits 但是它造成了合并冲突并破坏了历史。请帮帮忙。如能立即提供帮助将不胜感激。谢谢
发布于 2013-09-05 10:14:48
例如,如果文件
A中存在冲突,则文件A将被合并,但文件B不会合并
正如"Merging git notes when there are merge conflicts in them“中提到的
git fetch origin refs/notes/commits:refs/notes/origin/commits
git notes merge -v origin/commits如果有冲突,它现在将告诉您编辑
.git/NOTES_MERGE_WORKTREE,然后通过git notes merge --commit提交结果,或者中止与git notes merge --abort的合并。
因此,B应该在git notes merge --commit之后进行合并。
注:GIT2.6 (Q3/Q4 2015)将添加 strategies。
https://stackoverflow.com/questions/18631169
复制相似问题