Sometimes you need to excluded a modified file from your git commit. There are a few ways to do this, my preference is this.
To ignore a single file that is already versioned:
git update-index --assume-unchanged "folder/folder/filename.foo"
Then you can complete your commit normally.
sh (git commit -am "")
If you dont want to ignore file permanently, undo the ignore:
git update-index --no-assume-unchanged "folder/folder/filename.foo"