10/30/2023 0 Comments Clearing credential managerLet's say the Git repository is and you connect using HTTPS. If you want to remove just one cached credential then that can be done in any operating system by driving the Git credential helper API from the Git command line: TL DR look for: /home/MyUsername/.gitconfig I wrote this answer in more details and perhaps a little offtopic as starting in 2 days (August 13th 2021), password authentication will no longer be possible, and I suppose some users might have difficulty in locating their cached password. I installed this as well, and the PAT credentials are now stored in a different location: Github recommends using their Git Credential Manager Core (GCM Core) for storing credentials (source: ). I deleted the file, and simply pasted the PAT instead of my password the next time. I found the password in the following file: /home/MyUsername/.gitconfig So I had to look for my cached/stored password in order to remove it, so that I can then enter my PAT instead of my password when prompted. However, the problem I had, was that my password was cached, so I never had to enter it. Github suggests (at the time of writing this answer) that the switch can be done by simplying entering my PAT instead of my password. I ran into this question while trying to switch from password authentication to PAT (personal access token).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |