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
Similar to the comment by Tejes, I had this problem only with files called "aux.R", which I could not git pull onto a windows machine, while it works fine on my linux client.
I fixed it by renaming it to "auxiliary.R", works now without any problem.