小编kcs*_*rom的帖子

git可以像git rebase那样内联离开冲突标记吗?

git rebase将冲突标记内联到文件中; 就像是:

<<<<<<< HEAD
Whatever line + context is different from the previous commit
=======
Whatever line + context is different from the commit being applied
>>>>>>> new version, new branch:app/views/common/version.txt
Run Code Online (Sandbox Code Playgroud)

当我使用git apply来应用使用git format-patch创建的补丁时,它将无法保留默认修改的任何文件.我可以给它--reject这将导致它为那些具有无法解决的冲突的人创建.rej文件,但实际上,我希望它修改文件并让每个人都处于git rebase所做的状态,这样我就可以打开文件,手动合并它,然后git添加它并告诉git apply继续.有没有办法做到这一点,我只是不知道?

git conflict rebase apply

14
推荐指数
3
解决办法
2743
查看次数

标签 统计

apply ×1

conflict ×1

git ×1

rebase ×1