方法1: Use double quotes to add single quote in the message:
git commit -m "cracked enigma's code"
方法2:
When you have some special characters to add in the commit message, edit the message in a editor (like nano or vim or note), commiting without the -m
option.
git commit