How to revoke git authentication from repository #24083
-
Hi! I don’t know that I’m phrasing this right, but how do I go about revoking authentication/signing out from a cloned repository? To expand: I was trying to clone a private GitLab repository using GitHub Desktop. I cloned the repository fine, but when it asked for me to authenticate I signed in with my GitLab email and password, instead of with the authentication key like I was supposed to. As a result I cannot commit or upload anything to the repository, and I can’t figure out how to unauthenticate so I can re-sign in and put in the correct key. I’ve already attempted deleting the local repository and re-cloning it, deleting the project on GitLab and recreating it, and uninstalling Github Desktop and reinstalling it. Somehow it still doesn’t ask me to re-sign in when I try to clone the repository. Any help would be appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @enderdrag64 , welcome to the community, I am guessing you asking about cached Git Credentials, if so this should help.
If you are still using an existing cached password for you login you will need to remove it, the below will help, hopefully slight_smile Launch ‘Credential Manager’ on your Windows device. Switch to tab Windows Credentials (it default displayed tab Web Credentials on my device). A list of locally cached credentials are then shown Find an entry starting something like git:htttps//[email protected] (this will be an exist cached entry for your username/password. You can safely delete this by … |
Beta Was this translation helpful? Give feedback.
-
Cool thank you! I tried deleting the credentials and I was able to sign in with the correct authentication key. |
Beta Was this translation helpful? Give feedback.
Hi @enderdrag64 , welcome to the community,
I am guessing you asking about cached Git Credentials, if so this should help.