You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
566 B
51 lines
566 B
#!/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"
|
|
|