This isn't really a possible thing unless you elect to write a pre-commit hook for it.
However, it's also not a good idea. Depending on the project you're working on, there are files you do not want to commit due to their nature (auto generated, large binary blobs, system configuration, system keys, etc). Also, if you're doing some more advanced work with Git, like splitting hunks of commits out, the warning will become noise at best.
This is more or less a discipline issue, and I mean this in the best way possible. One must be accustomed to performing the steps to check if something (rather, the correct things) is/are staged before commiting. This means you have to get in the habit of typing out these commands often:
git status
git add . # or whatever variant of add you need to work with
git status
git commit
git push (ideally when ready)