'git push origin MyBranchName' throws error “HTTP Basic: Access denied”

后端 未结 3 364
北荒
北荒 2021-01-13 08:46

I am new to Git (just started 2 days ago). I\'m attempting to create a project to practice the basic commands I\'ve learned from here.

Where I am, so far:

相关标签:
3条回答
  • 2021-01-13 09:24

    After doing some digging of my own thanks to this problem I found out that it is more than likely coming from the credential manager. I had no ssh keys since it was a fresh Gitlab account and it was not working with my username and password. The same setup however, was working on GitHub. After uninstalling git and reinstalling without the credential manager it worked.

    0 讨论(0)
  • 2021-01-13 09:37

    If it is on windows, go to Credential Manager, Windows Credentials and Delete the entries under Generic Credentials.

    Try connecting again. This time, it should prompt you for the correct username and password.

    0 讨论(0)
  • 2021-01-13 09:43

    These are my ideas:

    • Try if it works on the Git Bash
    • Have you added a ssh key to your account? If yes remove it and try again. If not add one and try the ssh url.
    • You don't necessarily need Tortoise Git but it may also work around your problem
    • Try to re-install Git without the Git Credential Manager for Windows

    When you've fixed the push problem you will also be able to clone it when it is private or internal.

    0 讨论(0)
提交回复
热议问题