Using multiple GitHub Accounts on Windows sucks by default. If you are tired of Window's Credential Manager storing only one account's credential for git:https://github.com then here is a 1-minute fix for you.
TL;DR
If you know what you're doing just:
- delete your GitHub credentials from Windows Credential Manager
- run
git config --global credential.github.com.useHttpPath true
- continue coding
If you need more detailed instructions and learn about the background just read on here: https://dev.to/configcat/lazy-man-s-guide-multiple-github-https-accounts-on-windows-2mad
Git is definitely one of those things that gets painful on Windows. Especially if you're using some GUI client as well. Not sure how I feel about using SSH config vs git config to select the right key, but I've mostly phased out HTTPS because of the headaches (other than for the occasional quick clone). dev.to |
No comments:
Post a Comment