Ask coding questions

← Back to all posts
git cant add file due to permissions!
Squirrel777 (138)

So basically I have almost everything resolved! That problem from yesterday? Solved! Which is good, but... what's that? Another permissions error! Oh boy. So basically I did git add ., but that didn't seem to work. I got this instead:

error: open("index.html"): Permission denied
error: unable to index file 'index.html'    
fatal: adding files failed

Anyone know how to fix this?

Things I tried

So I have tried a couple of things... and none of them worked.

  1. git add --ignore-errors . source

  2. chmod 777 myFolder