Skip to content
kynan edited this page Jun 29, 2012 · 2 revisions

Coding Guidelines

Checking your commit conforms to coding guidelines

Install a Git pre-commit hook automatically checking for tab and whitespace errors before committing. In the root directory of your local Git repository do

git config --local core.whitespace "space-before-tab, tab-in-indent, trailing-space, tabwidth=4"
mv .git/hooks/pre-commit.sample .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

Clone this wiki locally