Tuesday, 19 December 2006

My .gitconfig

By default, git does not include aliases for commands. For instance,
'git status' works but 'git st' does not. This will hurt your noggin if you are
used to using cvs or svn.
Also, the internet is for posting config files on.
So here are the contents of my .gitconfig:


[user]
name = James Bowes
email = MY_EMAIL

[alias]
ci = commit -a
co = checkout
st = status -a
praise = blame

[apply]
whitespace = strip

[diff]
color = auto
rename = copy

[pager]
color = true

[status]
color = auto

Just drop that into ~/.gitconfig and you're all set. Also, use your own name
and email address.

1 comment: