Вы должны использовать личный токен доступа с read_repository
[remote "origin"]
url = https://oauth2:ACCESS_TOKEN@gitlab.com/yourself/yourproject.git
Long Lemur
[remote "origin"]
url = https://oauth2:ACCESS_TOKEN@gitlab.com/yourself/yourproject.git
# How to set up Github Personal Access Token (from Terminal)
# First you need to set the remote URL of your repo
git remote add origin remote_url_here
# then you update the remote URL with your token
git remote set-url origin https://put_username_here:put_token_here@github.com/put_username_here/repo-name.git
# After pushing the first time, do this
# Enable caching for 7200 seconds (2 hours)
git config --global credential.helper 'cache --timeout 7200'
# go to github > settings > developer settings > personal access tokens
# create token
git clone https://<ACCESS_TOKEN>@github.com/<USERNAME>/<REPO>.git