

Usually, this happens when you try to push to one of your repositories in the name of another account that is for your other project. If you're using Windows Credential Manager to store your username/password for your GitHub account, and you have to work with different GitHub accounts for different projects, then I'm sure you've already experienced While solution is really nice, you might be interested in a more basic approach. I decided to share the "lazy man's guide" to set up multiple GitHub accounts on Windows. While I would never publicly admit that I'm lazy, I happen to know a quick and dirty solution here.

His solution is based on SSH keys and is pretty thorough. Just came through great post about setting up multiple GitHub accounts the nice way. I never really liked how the credential manager on Windows stores one single GitHub account for all my repos by default. If you're a developer at heart, I'm sure you know what I'm talking about. It's not only the repos of ConfigCat, my feature flag service (a great LaunchDarkly alternative "by the way") but my other projects too. I'm juggling with multiple GitHub repos on a daily basis. If you need more detailed instructions and learn about the background just read on. delete your GitHub credentials from Windows Credential Manager.If you are tired of Window's Credential Manager storing only one account's credential for git: then here is a 1-minute fix for you. Using multiple GitHub account's on Windows sucks by default.
