Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset git authentication?

Tags:

git

gitlab

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.

like image 247
MyBug18 Avatar asked Jul 29 '18 14:07

MyBug18


People also ask

How do I remove a credential from Git terminal?

Go to Start menu, type "Credential Manager", then inside this manager, select "Windows Credentials", seek for "git:https//github.com", expand it, then you'll find "Delete" inside of it.


2 Answers

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

like image 102
ikh Avatar answered Sep 23 '22 09:09

ikh


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)

like image 20
tturbo Avatar answered Sep 19 '22 09:09

tturbo