2015-09-06 58 views
0

我在嘗試在git中提交時出現錯誤。是什麼原因?我想一切都很好。Git提交命令獲取路徑規範的錯誤

[email protected]:~/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

看起來你正在使用某種排印引號,而不是shell所期望的引號(''''或''') – larsks

+0

'git status'顯示了什麼?你做了一個'git add 。第一個? – Ramzendo

回答

1

您輸入的引號並不是您的終端的普通引號。如果您要使用-m標誌,則必須改用適當的引號" "

實際上最好不要使用-m標誌,因爲您在該窗口中可以寫入的字符數量受到限制。省略它,並使用core.editor來代替提交您的提交消息。

+0

Aagain無法執行提交命令現在得到這個錯誤我有一個配置了ssh密鑰的git倉庫farooq @ ubuntu:〜/ workspace/assignment2_farooqab $ git commit -m「這是第一次提交」 * **請告訴我你是誰。 運行 混帳配置--global user.email「[email protected]」 混帳配置--global user.name「你的名字」 設置帳戶的默認身份。 省略--global僅在此存儲庫中設置標識。 fatal:無法自動檢測電子郵件地址('farooq @ ubuntu。(none)') farooq @ ubuntu:〜/ workspace/assignment2_farooqab $ – Farooq

+0

這不是錯誤;您必須在提交之前輸入您的電子郵件地址和姓名。做命令提示符告訴你什麼,你會沒事的。 – Makoto

+0

我把用戶名和電子郵件,它的作品。我可以在倉庫中提交。我的大學混帳不是幻想。我無法在大學服務器上看到我的存儲庫。爲什麼...我可以使用Linux終端進行提交。但無法在Personal unversity git網站上看​​到我的項目 – Farooq