I've set config of git so that 'git config --list' gives following:
core.editor=vim
core.whitespace=trailing-space,space-before-tab,indent-with-non-tab
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
But when I want to commit a file whit trailing space or other whitespace problem, it never complains. Don't know what I can do.