有什么方法可以对 merge/rebase/patch/am 命令的 git 输出中的冲突进行着色吗?

有什么方法可以对 merge/rebase/patch/am 命令的 git 输出中的冲突进行着色吗?

这是一个反弹如何对 git 的输出进行着色?

我想对 merge/rebase/patch/am 命令的 git 输出中的任何冲突进行着色。

Applying: CH10: Stub file added with notes copied from video recording lessons.
Applying: TOC: Adding Chapter 10 to the book build.
Using index info to reconstruct a base tree...
M   book.asciidoc
Falling back to patching base and 3-way merge...
Auto-merging book.asciidoc
CONFLICT (content): Merge conflict in book.asciidoc
Recorded preimage for 'book.asciidoc'
Failed to merge in the changes.
Patch failed at 0002 TOC: Adding Chapter 10 to the book build.
The copy of the patch that failed is found in:
   /Users/emmajane/Git/1234000002182/.git/rebase-apply/patch

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

如果冲突是其他颜色,我可以轻松停止,这将非常有帮助

相关内容