22

I'm able to see my local and remote branches colored differently with the following configuration in my .gitconfig.

[color "branch"]
    current = bold cyan
    local = normal
    remote = bold red

In git branch -vv however, there is an additional upstream branch displayed that has a different color which is unreadable on my screen.

How do I configure this “upstream” color? (movie pun unintended :)

A git help config lists the color parameters for many branch types but I'm not able to find out one for this upstream branch.

4

1 回答 1

33

查看源代码,您想upstream用作插槽名称:

[color "branch"]
    upstream = bold blue

看起来更多最新的手册页也列出了该选项。您正在查看的可能早于 1.8.3(这是该功能首次出现的时间)。

于 2013-09-25T18:48:00.940 回答