Real collaboration on the same maps?

Maybe I got carried away too quickly. Beyond the installation, which is quite complicated, you have to work at the same time. But we are not always together sometimes one of us has to leave and the other one can’t do anything anymore. github can’t merge the modifications. or maybe I set it up wrong? how can I do that? thanks in advance.