2012-02-01 62 views
1

當我寫的命令行:git的承諾錯誤消息

git commit -m ™Initial commit™ 

我得到了一個錯誤:

error: pathspec '"commit\342\204\242"' did not match any file(s) known to git. 

我怎樣才能解決這個問題?

回答

3

這也可能是那些熱鬧™商標符號:

$ echo -e "\0342\0204\0242" 
™ 

試着鍵入,手,git commit -m "initial commit",並使用標準"報價 - 八進制ASCII碼042,十進制34,十六進制爲0x22。

0

看來這是因爲沒有文件可以將git放入存儲庫。

提交之前創建(例如.gitlock)的空文件,然後運行該命令:

git add .gitlock