25

I typed wrong ID (my mistake) and I think my computer's IP is permanently banned. I'd like to un-ban my IP so that I can git clone to my desired git repository. when I tried to git clone my git repository, it says remote: HTTP Basic: Access denied fatal: Authentication failed for "~~my repository"

How can I re-access my git repository? Or how can I reset my banned-state? I think typing wrong ID only once and be permanently banned is somewhat harsh.

MyBug18
  • 1,677
  • 2
  • 7
  • 23
  • 4
    Possible duplicate of [Remove credentials from Git](https://stackoverflow.com/questions/15381198/remove-credentials-from-git) – ikh Jul 29 '18 at 15:03
  • 1
    Answer is already given on : https://stackoverflow.com/questions/47860772/gitlab-remote-http-basic-access-denied-and-fatal-authentication/51042334#51042334 – Bharti Ladumor Oct 12 '18 at 10:09

2 Answers2

53

It seems that your credential manager stored wrong authentication and reuses it. Reset it.

git config --system --unset credential.helper

More information:

Remove credentials from Git

GitLab remote: HTTP Basic: Access denied and fatal Authentication

ikh
  • 9,139
  • 1
  • 28
  • 64
1

I think this article may serve you better: Github OpenSSH asking for password for an https link

To unset the git config --system --unset credential.helper command, you can do type git config --system credential.helper store (maybe also with --global and --local flag)

tturbo
  • 31
  • 4