安装github上后,并试图将其设置为第一次,我键入安装后github上,错误试图建立一个提交
git init
,一切都很好。然后我输入
git add .
并且没有错误。
然而,当我到达步骤
git commit –m "first"
这将导致以下错误
- error: pathspec '–m' did not match any file(s) known to git.
- error: pathspec 'first' did not match any file(s) known to git.
我怎么在这里做什么?
你是从同一目录中运行的所有的人的OP ? 'git status'给你什么?还要确保你使用了正确的连字符。 – patrick
[rm:can not remove'-rf':No such file or directory](https://stackoverflow.com/questions/45592535/rm-cannot-remove-rf-no-such-file-or- directory ) – litelite
你使用非标准的shell来执行这些命令吗?这几乎就像你的命令行解析器正在将其传递给git的参数列表(ed:或者意外解析器意外传递的意外字符)混淆。 –