use a personal access token with 'read_repository' or 'write_repository' code example
Example: you must use a personal access token with 'read_repository'
[remote "origin"]
url = https://oauth2:[email protected]/yourself/yourproject.git
[remote "origin"]
url = https://oauth2:[email protected]/yourself/yourproject.git