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.

Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: