Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Colourless Git Output

DZone's Guide to

Colourless Git Output

· DevOps Zone ·
Free Resource

Discover How Software Testing Kills DevOps and how software testing is still dominated by yesterday's tools and outdated processes.  Brought to you in partnership with Tricentis.

I teach git and often have issues with bad projectors where you can't see the colours. Recently I had a setup where even white on black was more or less invisible, but using black text on a white background worked okay. There's lots of documentation on how to turn on colours in git but not so much about how to turn them off.

Try putting the following into .git/config:

[color]
    branch = false
    diff = false
    interactive = false
    status = false

I had expected to be able to set color.ui to false but that didn't seem to make much difference, so I now use the settings above. I thought I'd drop it here in case anyone else is looking for the same thing.

Get a reality check on the Best (and Worst) Use Cases of Testing in AI and how AI will soon become part of our day-to-day quality engineering process.  Brought to you in partnership with Tricentis.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}