I am having the same problem like:
when I tried the given answer:
chown --recursive $(id -u) .
in my git bash, and after I tried to commit I still have the problem. If I run:
chown --recursive $(id -u)
(Notice that the dot is not there) I got the following message:
chown: missing operand after '197609'
What does it mean? That the missing operand is the dot?
Why "chown --recursive $(id -u) ." is not solving the problem? What other things can I do?
Thanks for your help