git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is it possible to configure the color of git diff outpyut

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 17, 2009, 16:51 UTC
Message-ID
<7vbpnj5k2l.fsf@alter.siamese.dyndns.org>
In-Reply-To
<3b9893450907170935k53baf50fue84fe619624a4489@mail.gmail.com>
n179911 <n179911@gmail.com> writes:
> When I do git diff, for example, it has color output (red for "-" and
> green for "+").
> Can you please tell me how can I change the color used?

Can you please tell us what resources you consulted to figure this out yourself before asking your question on this list? I am not complaining; I am trying to see how a "typical" user finds information on our software, so that we can potentially optimize our documentation set to make it easier to find answers to common questions.

The answer to your question is found by looking for color.diff.<slot> in "git help config".

Previous: n179911Next: Mike Hommey
Message 2 of 3 in “Is it possible to configure the color of git diff outpyut”
  1. n179911Jul 17, 2009
  2. Junio C HamanoJul 17, 2009
  3. Mike HommeyJul 17, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.