Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 372
camerb Avatar asked Mar 07 '11 23:03

camerb


People also ask

How do I change colors in git?

This now reads: --type=color [--default=<default>] is preferred over --get-color (but note that --get-color will omit the trailing newline printed by --type=color ). You can see git config --type=bool used with Git 2.26 (Q1 2020) to replace " git config --bool " calls in sample templates.

How do I change my custom Font color?

You can change the color of text in your Word document. Select the text that you want to change. On the Home tab, in the Font group, choose the arrow next to Font Color, and then select a color.

How do you use colors in markdown?

Markdown doesn't support color but you can inline HTML inside Markdown, e.g.: <span style="color:blue">some *blue* text</span>. As the original/official syntax rules state (emphasis added): Markdown's syntax is intended for one purpose: to be used as a format for writing for the web.


2 Answers

git config --global color.status.updated 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.

like image 199
Andrew Marshall Avatar answered Sep 23 '22 08:09

Andrew Marshall


I believe Git just uses terminal color codes... so you'd need to change your terminal's ANSI color code mappings to a different color. The method of doing this (and whether it's even possible) varies depending on the terminal.

like image 43
Amber Avatar answered Sep 22 '22 08:09

Amber