我在尝试提交git时遇到错误。是什么原因?我想一切都很好。
farooq@ubuntu:~/workspace/abproject$ git commit -m “First commit of assignment2_farooq”
error: pathspec 'commit' did not match any file(s) known to git.
error: pathspec 'of' did not match any file(s) known to git.
error: pathspec 'abproject”' did not match any file(s) known to git.
您输入的引号不是您的终端机的常规引号。如果要使用-m
标志,则必须使用适当的引号" "
代替。
实际上,最好不要使用该-m
标志,因为在该窗口中可以写入的字符数受到限制。忽略它,然后使用core.editor
编写您的提交消息。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句