git commit -m "hamlet" not working for me
I restated the task, and that on "-m" I used "-" from alphanumerical keyboard. It worked for me. Good luck!
The command is ok, just press Enter when you finish typing the commands