Access Error When Pulling via Console Using GitLab – Access Token

Tiempo de lectura: 2 minutos

Reading time: 2 minutes

When trying to perform a GitLab project pull via the console, I’m getting the following error:

GitLab – remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password.

To solve this, I have followed the steps below:

First, we log in to our GitLab account.

Once inside, click on our profile in the upper right corner.

Upon clicking, a menu will appear, and we select “Preferences”.

In the main menu on the right, we access the “Access Tokens” option.

Next, we need to generate an access token by filling in the necessary fields.

Finally, click on “Create personal access token”.

Once the token is generated, simply retry the project pull, and you will see that it works and the pull is performed correctly.

I hope this helps. Have a great day!!

Leave a Comment