Before:

git remote -v
origin	https://gitlab.com/username/project.git (fetch)
origin	https://gitlab.com/username/project.git (push)

After creating a Personal Access Token, replace 'username', 'personal-access-token' and 'project' in the URL bellow:

git remote set-url origin https://username:personal-access-token@gitlab.com/username/project.git

After:

git remote -v
origin	https://username:personal-access-token@gitlab.com/username/project.git (fetch)
origin	https://username:personal-access-token@gitlab.com/username/project.git (push)
Zoeken