Pretty git

I have the following git configuration in my ~/.gitconfig, which improves a lot the output of the git log command:

[user]
	name = Joel
	email = myemail@mydomain.com
[alias]
	co = checkout
	ci = commit
	st = status
	br = branch
[merge]
	tool = meld
[core]
	editor = vi
	whitespace=fix
	autocrlf = input
[apply]
	whitespace = warn
[format]
	# Make 'git log' default to this format
	pretty = color
[pretty]
	color = %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset
[color]
	ui = true
	wtf = true
[diff]
	color = auto
	rename = copy
#	tool = vimdiff
[status]
	color = auto
[pager]
	color = true
[color "branch"]
	current = yellow reverse
	local = yellow
	remote = green
[color "diff"]
	meta = blue bold
	frag = magenta bold
	old = red bold
	new = green bold
[color "status"]
	added = yellow
	changed = green
	untracked = cyan
[color "diff"]
	whitespace = red reverse	
[rerere]
	enabled = true
[push]
	default = simple
[credential]
	helper = store








Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top