GitLab remote: HTTP Basic: Access denied and fatal Authentication

前端 未结 30 2188
攒了一身酷
攒了一身酷 2020-11-28 00:06

I am on mac OS unlike this post:

  • 'git push origin MyBranchName' throws error "HTTP Basic: Access denied"

I have password conf

相关标签:
30条回答
  • 2020-11-28 00:40

    So for me the problem was that I had created my GitLab account via linking my GitHub account to it. This meant that no password formally existed for the account as it was created via hotlink between GitHub and GitLab. I fixed it by going to GitLab Settings -> Password -> and writing the same password as my GitHub account had.

    0 讨论(0)
  • 2020-11-28 00:40

    When I had the same problem,

    I solved it by removing the file "passwd" in

    C:\Users\<USERNAME>\AppData\Local\Atlassian\SourceTree

    After removing Sourcetree will prompt for the password.

    Note:
    OS Version : win10 
    Sourcetree Version:  3.1
    
    0 讨论(0)
  • 2020-11-28 00:41

    i removed gitlab credential from 'Credential Manager' in windows and pushed successfully

    0 讨论(0)
  • 2020-11-28 00:43

    Just add your username before the domain:

    https://**username**@gitlab.com/user/projectgit
    

    And the assistant will ask you the password

    0 讨论(0)
  • 2020-11-28 00:43

    Try this:

    1. Go to: C:/Users/(YourUserName)/
    2. Delete file .gitconfig
    0 讨论(0)
  • 2020-11-28 00:44

    Same problem with Sourcetree On Mac

    Solution: Delete the password in keychain access.

    https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-quot-fatal-Authentication-failed-for-quot/qaq-p/201844

    When you try to push again it will ask for your password.

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