配置 git-diff 以默认启用 color-words 很容易。
我如何同样配置 git-show
默认使用 color-words
?
到目前为止我发现的唯一选择是使用别名:
[alias]
sh = show --color-words
最佳答案
您可以使用[color "command"]。这是一个例子。您需要检查“显示”有哪些选项。
[color "diff"]
frag = cyan
new = green
commit = yellow
[color "branch"]
current = green
[color "status"]
updated = green
关于git - 在 git-show 上默认设置 color-words 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35066815/