配置git diff的输出颜色

将配置添加到~/.gitconfig

[color "diff"]
	meta = white reverse
	frag = cyan reverse
	old = red bold
	new = green bold

颜色参数的取值

颜色属性的配置取值

摘抄地址