How to get color patches using git interactive in bash?

I use git add -ito select patches to add or not.

I learned how to use git by watching a video at http://gitcast.com . In their videos, I see that the patch output when using git add --interactive is colored (on OSX?). When I do the same on my system (Linux / Kubuntu / bash), the patches are not painted (the usual colors of the shell, i.e. White / black).

How can I get a color output?

+3
source share
1 answer

In .gitconfig

[color]
  status = auto
  diff = auto

Of course, your terminal must support color. There is more information here .

+3
source

Source: https://habr.com/ru/post/1760286/


All Articles