使用以下命令提交代码
git commit -m 'fix:optimize code'
提示报错:
error: pathspec 'code'' did not match any file(s) known to git
解决方法:将注释单引号换成双引号即可
git commit -m "fix:optimize code"
git commit -m 'fix:optimize code'
提示报错:
error: pathspec 'code'' did not match any file(s) known to git
git commit -m "fix:optimize code"