1

Unlike this post im authorized in gitLab via GitHub

I am authorized in gitLab via gitHub and I trying to clone project with URL.

So when I trying to do steps below for a new project I am prompted to enter my gitlab account login and password

git init
git remote add origin https://gitlab.com/Egas88/web_lab_2.git
git fetch

after data is entered for both gitLab and GitHub I get the following error

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. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied fatal: Authentication failed for 'https://gitlab.com/Egas88/web_lab_2.git/'

I tried to change rights from developer to maintainer and I still get this problem

Egor
  • 13
  • 4

3 Answers3

0

I don't see that you clarified if you have a 2FA enabled or not... But I'll assume that you do for this answer.

Try using your Personal Access Token instead of your password. You can find instructions here on how to create a Personal Access Token.

0

Maybe, you should change your password for GitLab in Windows credential manager

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Nov 18 '22 at 06:29
0

All the scenarios and needed actions for this error are explained under the GitLab link that you get with the error.

hanna
  • 627
  • 9
  • 15