The following command will prevent files to staged when doing git add .
git add .
git update-index --assume-unchanged