#!/bin/bash

##
## Git utilities
##

cat <<EOF > /etc/gitconfig
[alias]
    co = checkout
    com = commit
    st = status
    ci = commit

[color]
    branch = auto
    diff = auto
    interactive = auto
    status = auto

[core]
    whitespace = fix
    excludesfile = /etc/gitignore

EOF

cat <<EOF > /etc/gitignore
docs/build/*
develop-eggs/*
*.pyc
*.o
.installed.cfg
eggs/*
*.egg-info/*
*.orig
dist/*
build/*
buildout.dev.cfg
*~
*#
.#*
*.swp
*_flymake.*
.svn

EOF



git config --global user.email "default@$(hostname)"
git config --global user.name "default"