Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何探索git颜色?_Git_Git Config - Fatal编程技术网

如何探索git颜色?

如何探索git颜色?,git,git-config,Git,Git Config,8.1定制git-git配置中的git手册有一个描述如何更改输出颜色的示例。在我当前的例子中,我想将diff“removed”的颜色从暗红色更改为红色。但实际上我想做更多的调整,这导致了以下问题: 要设置特定的颜色设置,我需要知道它的名称 本节提到color.branch,color.diff,color.interactive,color.status颜色.diff.meta。但是,color.diff的其余属性是什么?哪一个对应于“删除”位?我已经尝试了git config--get col

8.1定制git-git配置中的git手册有一个描述如何更改输出颜色的示例。在我当前的例子中,我想将diff“removed”的颜色从暗红色更改为红色。但实际上我想做更多的调整,这导致了以下问题:

要设置特定的颜色设置,我需要知道它的名称

本节提到
color.branch
color.diff
color.interactive
color.status
<代码>颜色.diff.meta。但是,
color.diff
的其余属性是什么?哪一个对应于“删除”位?我已经尝试了
git config--get color.diff
auto
git config——获取color.diff.meta
并得到一个空响应


如何获取所有颜色选项的列表?(及其值)

手册(
man git config
)中列出了从1070行到1200行的值(无论如何,对于git 2.26)。尝试搜索
color\。\w
。我已经使用了两个命令来改善亮度问题:
git-config--global-color.status.changed“red-normal-bold”
git-config--global-color.status.untracked“red-normal-bold”
(而不是
man-git-config
使用
git-config--help>)这些值似乎列在手册(
mangitconfig
)中,大约从第1070行到第1200行(无论如何,对于git2.26)。尝试搜索
color\。\w
。我已经使用了两个命令来改善亮度问题:
git-config--global-color.status.changed“red-normal-bold”
git-config--global-color.status.untracked“red-normal-bold”
(而不是
man-git-config
使用
git-config--help>)