方法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
Git特殊字符提交
本文介绍在使用Git进行代码提交时,如何正确处理包含特殊字符如单引号的提交信息。提供了两种方法,一种是使用双引号包裹提交信息,另一种是在编辑器中编辑提交信息。
442

被折叠的 条评论
为什么被折叠?



