fork 0k-charms
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

  1. #!/bin/bash
  2. ##
  3. ## Git utilities
  4. ##
  5. cat <<EOF > /etc/gitconfig
  6. [alias]
  7. co = checkout
  8. com = commit
  9. st = status
  10. ci = commit
  11. [color]
  12. branch = auto
  13. diff = auto
  14. interactive = auto
  15. status = auto
  16. [core]
  17. whitespace = fix
  18. excludesfile = /etc/gitignore
  19. EOF
  20. cat <<EOF > /etc/gitignore
  21. docs/build/*
  22. develop-eggs/*
  23. *.pyc
  24. *.o
  25. .installed.cfg
  26. eggs/*
  27. *.egg-info/*
  28. *.orig
  29. dist/*
  30. build/*
  31. buildout.dev.cfg
  32. *~
  33. *#
  34. .#*
  35. *.swp
  36. *_flymake.*
  37. .svn
  38. EOF
  39. git config --global user.email "default@$(hostname)"
  40. git config --global user.name "default"