Pro Git 2nd Edition 2.1.413git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ... You may see keys more than once, because Git reads the output quickly and easily. A number of options can help you set the coloring to your preference. color.ui Git automatically colors most of its output, but there’s a master switch if you don’t like this do this: 339 $ git config --global color.ui false The default setting is auto, which colors output when it’s going straight to a terminal, but omits the color-control codes when the output is redirected0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ... You may see keys more than once, because Git reads the output quickly and easily. A number of options can help you set the coloring to your preference. color.ui Git automatically colors most of its output, but there’s a master switch if you don’t like this output, do this: $ git config --global color.ui false The default setting is auto, which colors output when it’s going straight to a terminal, but omits the color-control codes when the output is redirected0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ... You may see keys more than once, because Git reads the output quickly and easily. A number of options can help you set the coloring to your preference. color.ui Git automatically colors most of its output, but there’s a master switch if you don’t like this output, do this: $ git config --global color.ui false The default setting is auto, which colors output when it’s going straight to a terminal, but omits the color-control codes when the output is redirected0 码力 | 691 页 | 13.35 MB | 1 年前3
Gitea v1.21.1 中文文档日志记录器的标志 --expression value , -e value : 日志记录器的匹配表达式 --prefix value , -p value : 日志记录器的前缀 --color : 在日志中使用颜色 --stderr : 将控制台日志输出到stderr - 仅适用于控制台 file : 添加文件日志记录器 选项: --group value , -g value 日志记录器的标志 --expression value , -e value : 日志记录器的匹配表达式 --prefix value , -p value : 日志记录器的前缀 --color : 在日志中使用颜色 Gitea 命令行 - 67 - 本文档使用 书栈网 · BookStack.CN 构建 --filename value , -f value : 日志记录器的文件名 日志记录器的标志 --expression value , -e value : 日志记录器的匹配表达式 --prefix value , -p value : 日志记录器的前缀 --color : 在日志中使用颜色 --reconnect-on-message , -R : 对于每个消息重新连接主机 --reconnect , -r : 连接中断时重新连接主机 --protocol0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ... 你可能会看到重复的变量名,因为 Git 会从不同的文件中读取同一个配置(例如:/etc/gitconfig 充分支持对终端内容着色,对你凭肉眼简单、快速分析命令输出有很大帮助。 你可以设置许多的相关选项 来满足自己的偏好。 338 color.ui Git 会自动着色大部分输出内容,但如果你不喜欢花花绿绿,也可以关掉。 要想关掉 Git 的终端颜色输出,试一 下这个: $ git config --global color.ui false 这个设置的默认值是 auto,它会着色直接输出到终端的内容;而当内容被重定向到一个管道或文件时,则忽略 色码,可以传递 --color 标志给 Git 命令来强制它这么做。 默 认设置就已经能满足大多数情况下的需求了。 color.* 要想具体到哪些命令输出需要被着色以及怎样着色,你需要用到和具体命令有关的颜色配置选项。 它们都能被 置为 true、false 或 always: color.branch color.diff color.interactive color.status 另0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66git config --list user.name=John Doe user.email=johndoe@example.com color.status=auto color.branch=auto color.interactive=auto color.diff=auto ... 你可能会看到重复的变量名,因为 Git 会从不同的文件中读取同一个配置(例 如:/etc/gitconfig 充分支持对终端内容着色,对你凭肉眼简单、快速分析命令输出有很大帮 助。 你可以设置许多的相关选项来满足自己的偏好。 color.ui Git 会自动着色大部分输出内容,但如果你不喜欢花花绿绿,也可以关掉。 要 想关掉 Git 的终端颜色输出,试一下这个: $ git config --global color.ui false 这个设置的默认值是 auto,它会着色直接输出到终端的内容;而当内容被重 定向到一个管道或文件时,则忽略着色功能。 插入颜色码,可以传递 --color 标志给 Git 命令来强制它这么做。 默认设置就 已经能满足大多数情况下的需求了。 color.* 要想具体到哪些命令输出需要被着色以及怎样着色,你需要用到和具体命令有 关的颜色配置选项。 它们都能被置为 true、false 或 always: color.branch color.diff color.interactive color.status0 码力 | 670 页 | 13.59 MB | 1 年前3
共 6 条
- 1













