安裝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:或者意外解析器意外傳遞的意外字符)混淆。 –