Git Commit命令获取路径规范的错误

时间:2015-09-06 03:56:32

标签: git

尝试在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.

1 个答案:

答案 0 :(得分:1)

您输入的报价不是终端的正常报价。如果您想使用-m标记,则必须使用正确的引号" "

实际上,更好的做法是不使用-m标志,因为您在该窗口中可以写入的字符数量有限。省略它,并使用core.editor来编写提交消息。