Use git pre-commit hook to check unwanted trailing whitespace
Trailing whitespaces are always boring. So when we use git, we can set a pre-commit hook
to check this for us.
Put following shell to your .git/hook
folder.
Don’t forget give execute permission to it.
Meck
15 December 2011