Useful template for .gitconfig and .gitignore
Two useful templates to start your Git project that will help you to be a Git Jedi.
Put .gitignore and .gitconfig in your user home directory and change next parameters in .gitconfig:
Create/edit .git/hooks/pre-commit in your local working tree with pre-commit template to avoid committing of syntax errors.
Tested on Git 1.9.3 (OSX), 1.8.5 (CentOS), 1.7.9 (Ubuntu)