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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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!