"git push origin MyBranchName" throws an error "HTTP Basic: access denied"

I'm new to Git (just started 2 days ago). I am trying to create a project to practice the basic teams that I learned from here .

Where am I, still:

  • [success] Create a new public Git project (because before I tried to use private and internal, but I could not clone it, and I don't know why). Here it is .
  • Added README.mdto the project.
  • [success] Create a new branch with the name develop.
  • [success] In my local folder, C:\gitprojectsinstall global user.nameand user.emailusing the commands:

    • git config --global user.name <my user name>
    • git config --global user.email <my-email>
  • [success] Clone a project in my local folder C:\gitprojectsusing the commandgit clone https://flamedenise19@gitlab.com/flamedenise19/speedtyping.git

  • [success] Create a local branch using the command git checkout -b "develop".
  • [success] Manually add a new file test.txtto the local root folder for a test press.
  • [success] Commit the new file with the commandgit commit -m "adds test.txt"
  • [attempt] Press commit with commandgit push origin develop

And now I'm stuck with a piece push. After entering git push origin develop, a new window appears asking for my credentials (see screenshot below):

enter image description here

So, I entered my credentials (the same username and password that I use when logging into gitlab.com), but after that I got this error (see also the screenshot below):

remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.com/flamedenise19/speedtyping.git/'

enter image description here

QUESTIONS:

  • , ? - - ?
  • , - ?

, .

. , . , Git?

:

(. ):

enter image description here

+4
3

:

  • , Git Bash
  • ssh? , . ssh url.
  • Git, .
  • Git Git Credential Manager for Windows

, , .

+2

, . ssh, Gitlab, . , GitHub. git .

+2

If it is on Windows, go to Credential Manager, Windows Credentials, and delete the entries in the General Credentials section.

Try connecting again. This time, he should ask you for the correct username and password.

0
source

All Articles