views:

27

answers:

1

Is there a way to get coloured output with git in cmd? If yes, how?

Platform: XP SP3.

A: 

Caveat: tested in Ubuntu. Should work in Windows but not tested.

From the "customizing git" section of the Git book:

See all color.* options in the git config docs

$ git config color.branch auto
$ git config color.diff auto
$ git config color.interactive auto
$ git config color.status auto

Or, you can set all of them on with the color.ui option:

$ git config color.ui true
Manoj Govindan
Confirmed that this does work in msysGit's Bash shell on Windows. Also, you might want to make the setting apply globally (instead of just on the current project) with the command `git config --global color.ui true`
ewall