gitgitlab

How to reset git authentication?


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. But 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 access my git repository again? Or how can I reset my banned state? I think typing a wrong ID only once and be permanently banned is somewhat harsh.


Solution

  • 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