Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

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 response:

fatal: unable to stat 'myPathToAFile': No such file or directory

like image 400
coder Avatar asked Jan 04 '13 16:01

coder


1 Answers

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!

like image 138
coder Avatar answered Sep 18 '22 07:09

coder