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.

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

相关文章:

  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-21
  • 2021-10-04
  • 2021-07-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-09-22
  • 2021-03-28
相关资源
相似解决方案