How to color the Git console?

前端 未结 11 1112
借酒劲吻你
借酒劲吻你 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:45

    Another way is to edit the .gitconfig (create one if not exist), for instance:

    vim ~/.gitconfig
    

    and then add:

    [color]
      diff = auto
      status = auto
      branch = auto
    

提交回复
热议问题