Pla*_*mer 21 git colors git-config
我能够通过我的.gitconfig中的以下配置看到我的本地和远程分支的颜色不同.
[color "branch"]
current = bold cyan
local = normal
remote = bold red
Run Code Online (Sandbox Code Playgroud)
在git branch -vv然而,存在具有不同的颜色,其是我的屏幕上显示的不可读的附加上游分支.
如何配置这种"上游"颜色?(电影双关语无意:)
A git help config列出了许多分支类型的颜色参数,但我无法找到这个上游分支的颜色参数.
Joh*_*ter 32
查看源代码,您想要upstream用作插槽名称:
[color "branch"]
upstream = bold blue
Run Code Online (Sandbox Code Playgroud)
看起来更新的手册页也有列出的选项.您正在查看的那些可能早于1.8.3(这是该功能首次出现时).