Hi,
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?
Thank you.
threads / discuss / 20146
Subject: Is it possible to configure the color of git diff outpyut
Hi,
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?
Thank you.
Re: Is it possible to configure the color of git diff outpyut
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".
Re: Is it possible to configure the color of git diff outpyut
On Fri, Jul 17, 2009 at 09:51:46AM -0700, Junio C Hamano wrote:
> 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.
I think it would make sense to have reference to configuration items that have a special impact on commands in their manual pages. Or at least a "See Also" section mentioning "git-config".
Mike