How to color the Git console?

前端 未结 11 1134
借酒劲吻你
借酒劲吻你 2020-11-30 16:07

I recently saw that the git console in Windows is colored, e.g. Green for additions, red for deletions, etc. How do I color my git console like tha

11条回答
  •  我在风中等你
    2020-11-30 16:48

    Git automatically colors most of its output if you ask it to. You can get very specific about what you want colored and how; but to turn on all the default terminal coloring, set color.ui to true:

    git config --global color.ui true
    

提交回复
热议问题