before commit, do:
git rm --cached <filename>
ATTENTION:
do not use 'git rm <filename>', this will delete the file from disk
if commited, first use: "git reset --mixed <hashcode>" to reverse the commit