GIT: error: pathspec 'xxx did not match any file(s) known to git

后端 未结 3 1189
予麋鹿
予麋鹿 2021-02-06 13:17

I have some trouble with a git repository of mine and I cant find the error :(

Thing is, I had this repository already in use for a PHP project. everything was fine. The

3条回答
  •  梦毁少年i
    2021-02-06 13:42

    Well, years passed, new git versions were released, yet the problem still show up for me from time to time. The posted fixes unfortunately do not help. Yet, instead of committing with git commit . -m "xyz" doing a

    git commit -a -m "xyz"

    does wonders.

    Cheers.

提交回复
热议问题