I copied a small sub project I had that was under Git source control into another project and forgot to delete the .git folder. When I went to commit I got the same message as above and couldn't clear it until I deleted the .git
folder.
It is a bit silly, but it is worth checking you don't have a .git folder under the folder that doesn't commit.