See the documentation here: https://docs.mendix.com/developerportal/general/migrate-to-git/
Regards,
Ronald