M means that the working version of the file and the version you have in your last commit are different. You can check where differences are using git diff <namefile> The command you ran only unstage files. The most probable explanation is that you had all those modified files also before running your git reset command. Maybe those files are generated/created by the application you are working on...

Email codedump link for git reset HEAD file touches many other files too