Tuesday, December 19, 2006

My .gitconfig

Update: I've posted a revised version of my .gitconfig here.

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:

© 2012 James Bowes. Icons by glyphicons. Powered by Blogger.