Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Putty to show color coding on git output?

I am using Putty on Windows 7 to connect to a VirtualBox Debian install, but I am unable to get git commands through Putty to show color coding like Git Bash does on Windows. I can get (and configure) normal Putty (ANSI?) coloring for things like files and folders, but I am not seeing anywhere how to configure colors for git command output.

like image 914
Davicus Avatar asked Mar 27 '12 20:03

Davicus


People also ask

What is color UI in git?

Git color values ui , these color settings can all be set to false, auto, or always. These color settings can also have a specific color value set. Some examples of supported color values are: normal. black.

How do I change the color of the git console in Linux?

Set it to always if you want all output not intended for machine consumption to use color, to true or auto if you want such output to use color when written to the terminal, or to false or never if you prefer git commands not to use color unless enabled explicitly with some other configuration or the --color option.

What information does git status show?

The git status command displays the state of the working directory and the staging area. It lets you see which changes have been staged, which haven't, and which files aren't being tracked by Git. Status output does not show you any information regarding the committed project history.


2 Answers

Launch:

git config --global color.ui true
like image 51
ouah Avatar answered Nov 15 '22 17:11

ouah


Try git config color.ui true. If you can see colored files & folders, it means your terminal settings are correct, so Git must not be configured to display colors.

like image 20
Ethan Brown Avatar answered Nov 15 '22 15:11

Ethan Brown