所以我有master
和feature
个分支。我这样做:
git checkout feature
git rebase master
我遇到了合并冲突:
Unmerged paths:
(use "git reset HEAD <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: /src/...
我运行mergetool
git mergetool
冲突是令人讨厌的,我的合并工具没有帮助。所以我需要手动解决它,所以我关闭合并工具并回答:
Was the merge successful [y/n]? N
Continue merging other unresolved paths [y/n]? Y
这是唯一的冲突,所以我们退出
现在我希望看到4个文件:REMOTE,LOCAL,BASE,BACKUP在文件周围发生冲突,但我看不到它们。
问题:
答案 0 :(得分:0)
所以结果是git本身生成所有这些文件,你需要做的就是终止合并过程(而不是轻轻地回答所有问题):
Was the merge successful [y/n]?
点击Ctrl + C
,然后点击
git status
观察
Untracked files:
(use "git add <file>..." to include in what will be committed)
scripts/src/models/editing/main/basic-block/block-object-attribute-fields_BACKUP_9504.tsx
scripts/src/models/editing/main/basic-block/block-object-attribute-fields_BASE_9504.tsx
scripts/src/models/editing/main/basic-block/block-object-attribute-fields_LOCAL_9504.tsx
scripts/src/models/editing/main/basic-block/block-object-attribute-fields_REMOTE_9504.tsx