Git error fatal: unable to stat '*': No such file or directory

前端 未结 6 1432
清歌不尽
清歌不尽 2020-12-15 03:25

I ran into this error, and found very little documentation on how to fix it online. I got the error by trying to run the command git add ., and received this re

6条回答
  •  渐次进展
    2020-12-15 03:59

    To solve the problem, I removed the file from git, then re-added it by doing the following:

    git rm "myPathToAFile"

    git add .

    git commit -am 'my commit'

    Hope this helps someone else!

提交回复
热议问题