Pretty git

December 6, 2024 · Tech · By joelconty
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
joelconty

joelconty

Comments (0)

Please login to comment.

More from Your Blog

How to connect with ssh without using a password

How to connect with ssh without using a password

Let’s say you have an account on a remote server running some flavour of linux (or even *BSD – I thi...