![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPZUZMP_m8VR1GP7FW65X3YUbJsDvF6nMzpIhJ5D0lfYqMZ7e2CG-BMEriO-uaFO49FCaRvlG-Wy0lXAFE1oVeBfe1t8wXaz_ADWiyzvfAkzlpP27EkQI9m0Q_yjZKqt0RTkfHULU70e5amF5nCB9gVTBrC7carAwVUGdDN0CEJdNlbw6BUFmNnmTj/s1600/git.png)
$ git add .
fatal: pathspec ',' did not match any files
Pechkaのdesignでaddしたときに出たエラーメッセージ
対応方法#1
https://qiita.com/pugiemonn/items/2f6af4467b33ed3f41b5
登録されていないファイルを削除
$ git rm -r --ignore-unmatch ./*
ダメこれでは解決できなかった
その後、addしてcommitすると、
同じエラーがでる。
—
$ git add .
$ git commit -n 'new menu-design & login-css'
error: pathspec 'new menu-design & login-css' did not match any file(s) known to git
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged
..." to unstage)
modified: default/common.css
new file: login/common.css
new file: login/entry.css
new file: login/login.css
new file: login/login.js
new file: login/pc.css
new file: login/sp.css
new file: master/ajax.js
new file: master/lib.js
new file: master/table_list.css
—
Commit のオプションが-mではなく、-nになってた orz