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
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With