git 输出中的颜色?

grm*_*grm 10 git colors

我看过一些关于人们在 git 输出中获取颜色的例子。我尝试了以下指南http://scie.nti.st/2007/5/2/colors-in-git但不幸的是它没有成功。

还有什么需要做才能获得彩色输出吗?我将 .oh-my-zsh 与常规 Ubuntu 和颜色一起使用。

编辑:我正在从这个例子中寻找颜色(在做克隆时):http : //calip.so/quickstart-install-calipso.html

Can*_*ick 15

你可以试试这个。

git config --global --add color.ui true
Run Code Online (Sandbox Code Playgroud)

或者你可以创建一个简单的 ~/.gitconfig 开始。就像是。

[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
Run Code Online (Sandbox Code Playgroud)