APRIL 20, 2021
cd /path/to/repo.git sudo chgrp -R {groupname} . sudo chmod -R g+rwX . find . -type d -exec chmod g+s '{}' +
Source
CodeGitError