方法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
版权声明:本文为CodingIsFun原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。