Colors in git output

colorsgit

I have seen some examples on people getting colors in git output. I tried the following guide http://scie.nti.st/2007/5/2/colors-in-git but unfortunately it didn't succeeded.

Is there anything else that needs to be done to get colored output? I'm using .oh-my-zsh together with regular Ubuntu and color works in the term.

Edit: I'm looking for colors like from this example (while doing a clone): http://calip.so/quickstart-install-calipso.html

Best Answer

You can try this.

git config --global --add color.ui true

Or you can create a simple ~/.gitconfig to start with. something like.

[gui]
    recentrepo = /Users/name/Workspace/repo/src/stable
[user]
    name = name
    email = name@domain.com
[apply]
    whitespace = nowarn
[core]
    editor = vim
[color]
    diff = auto
    status = auto
    branch = auto
Related Question