最佳答案
我尝试了以下命令:
git commit path/to/my/file.ext -m 'my notes'
在Git版本1.5.2.1中收到一个错误:
error: pathspec '-m' did not match any file(s) known to git.
error: pathspec 'MY MESSAGE' did not match any file(s) known to git.
这是单个文件或目录提交的错误语法吗?