James Bowes

Purveyor of Pre-eminent Programmes

My .gitconfig

with one comment

update: I’ve posted a revised and updated version of my .gitconfig on my new blog.

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.

Written by jbowes

December 19, 2006 at 5:16 pm

Posted in tech

Tagged with , , , , , ,

One Response

Subscribe to comments with RSS.

  1. Thanks!

    Nik

    July 21, 2007 at 3:54 am


Leave a comment