GitLab remote: HTTP Basic: Access denied and fatal Authentication

前端 未结 30 2472
攒了一身酷
攒了一身酷 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:53

    For me it was some other git URL placed in config file, so I did change it manually:

    1. Move to .git/config file and edit it,
    2. Remove invalid URL(if it's there) and paste the valid git SSH/HTTP URL like below way:
    [remote "origin"]
            url = git@gitlab.com:prat3ik/my-project.git
    

    And it was working!!

提交回复
热议问题