输入下面命令行将文件提交到本地git中时报错
git commit -m 'init project'
error: pathspec 'init'' did not match any file(s) known to git
解决:将单引号换成双引号即可,如下(解释说明:在windows命令行中要双引号括起来,linux使用单引号,git bash使用单引号)
git commit -m “init project”
输入下面命令行将文件提交到本地git中时报错
git commit -m 'init project'
error: pathspec 'init'' did not match any file(s) known to git
解决:将单引号换成双引号即可,如下(解释说明:在windows命令行中要双引号括起来,linux使用单引号,git bash使用单引号)
git commit -m “init project”