尝试在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.
答案 0 :(得分:1)
您输入的报价不是终端的正常报价。如果您想使用-m
标记,则必须使用正确的引号" "
。
实际上,更好的做法是不使用-m
标志,因为您在该窗口中可以写入的字符数量有限。省略它,并使用core.editor
来编写提交消息。