Here's the quickie I use to punch all changed elements from git state. We do the fix one at a time, so I can add comments for each of them.
for each_git_file in
`git status | egrep 'modified|new file' | awk -F: '{print $2}' | sed 's/[\W\.]*//'`;
do
git commit -o $each_git_file;
done
source
share