Search code examples
gitmsysgitmingw32

How can I change a specific font color in git?


I'm looking to change the 'red' font color in git to something that is more towards pink. I tend to keep my monitors pretty dim, and whenever I look through diffs, the red font on the black background is hard to read. So, is there a way to specify that I want it to use a different color for red, preferably using a single command?

I'm using msysgit with MINGW32 on Win7.


Solution

  • git config --global color.status.updated magenta
    git config --global color.status.changed magenta
    git config --global color.status.untracked magenta
    git config --global color.diff.old magenta
    

    Substitute ”magenta” for whatever color desired. See the git-config documentation for more details.