I am using git-credential-winstore (installed using msysgit) to store my personal GitHub account information in a Windows credential store (Control Panel → User Accounts → Credential Management → Windows Credentials) Now I am trying to use a second GitHub account . I changed the local git.config ( git config user.name "foo"), but when I click, it is still trying to use the personal GitHub credentials. I know that I can change the repository URL from https://github.com/user/project.git to https: // user: password@github.com /user/project.gitbut I would rather not take the security risk by entering credentials in git.config. I know that I can go into the Control Panel and flip credentials back and forth, but this is really annoying. Is there a way to save some GitHub account data in git-credential-winstore and configure each repo to use one or the other?
source
share