I have always permission error when pushing to Git. I have found this solution.
After applying this commands for specific git repo:
sudo chgrp -R mygroup *
I have this error:
sudo: /etc/sudoers is owned by gid 1000, should be 0
sudo: no valid sudoers sources found, quitting
Why I have this error? What did I do wrong? What is the relation between sudo chgrp -R mygroup *
and sudoers?