Git colors: How do I set colors for the upstream branch in “git branch -vv”?

后端 未结 1 1625
囚心锁ツ
囚心锁ツ 2020-12-08 15:34

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

[color \"branch\"]
    current = bold cy         


        
相关标签:
1条回答
  • 2020-12-08 16:08

    Looking at the source code, you want to use upstream as the slot name:

    [color "branch"]
        upstream = bold blue
    

    It looks like more up-to-date man pages also have the option listed. The ones you were looking at are probably older than 1.8.3 (which is when the feature first appeared).

    0 讨论(0)
提交回复
热议问题