Ouch! As a general rule I try to use only one user per repo (other users can clone it it and sync using push
and pull
).
If you revert your change and then make it again as a normal user, there is a risk that some funny file still remains, in fact some funny files will certainly still remain inside the hidden .git
tree. I would instead force everything to be owned by your main user. Assuming you have such a "main" user for this repo you can try
(become root)
cd DA_REPO
chown -R mainUser:herGroup .
This should set the ownership on all files in the working directory AND in the hidden .git
directory. I admit I am hazy if -R
actually descends into hidden directories. So if it doesn't work can also try an explicit
chown -R mainUser:herGroup .git
[Update] Upon reading the original question, I see it talks about a "500 Encoding Error". It don't know what that means, or how it comes about, but it sounds like you have a version of a file with some bad characters in it. Git shouldn't care about that, but your program might. Find out what those files are and replace them with working ones. Also can you give more Detail about the erors you get?