windows的dos下使用git commit出现error: pathspec 'README.md'' did not match any file(s) known to git.

如下图,

windows的dos下使用git commit出现error: pathspec 'README.md'' did not match any file(s) known to git.

git commit -m 'update README.md'

git commit -m "update README.md"

它们仅仅是单引号和双引号的区别。

But

windows的dos下使用git commit出现error: pathspec 'README.md'' did not match any file(s) known to git.

windows的dos下使用git commit出现error: pathspec 'README.md'' did not match any file(s) known to git.

显而易见的,单引号其实也是没问题的,但是单引号中加了空格就报错了!

相关文章: