Git pre-commit hook for remove trailing spaces in lines and blank lines in the end of staged files
Clone git repository:
git clone git://github.com/mkaschenko/trailing_spaces_remover.git
Change directory to downloaded project:
cd trailing_spaces_remover
Make executable pre-commit file:
chmod +x pre-commit
Copy pre-commit file to git hook directory:
cp pre-commit /path/to/git/repository/.git/hooks
Maxim Kaschenko
Twitter: @mkaschenko
Jabber: kaschenkomaksim@gmail.com