/trailing_spaces_remover

Git pre-commit hook to remove trailing spaces and blank lines

Primary LanguageRuby

Trailing spaces remover

Description

Git pre-commit hook for remove trailing spaces in lines and blank lines in the end of staged files

Installation

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

Contacts

Maxim Kaschenko

Twitter: @mkaschenko

Jabber: kaschenkomaksim@gmail.com