Please find below link to create Personal Access Token to use as Credentials to log in git.api.mendix.com:
Personal Access Token (PAT). For more information on how to create a PAT, see Create a Personal Access Token with Warden in the Developer Portal Guide. When connecting, your username is your Mendix account username, and your password is the Personal Access Token you created. Alternatively, you can use the word pat as your username.