Git-credential-winstore.exe for two GitHub logins?

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?

+4
source share
1 answer

I forked git-credential-winstore to support multiple github logins. Here you can find your plug: https://gitcredentialstore.codeplex.com/SourceControl/network/forks/nickmeldrum/gitcredentialstore

( , , / .)

:

  • : git clone https://git01.codeplex.com/gitcredentialstore
  • , Debug ( Visual Studio MSBuild: msbuild.exe .\git-credential-winstore.sln)
  • : InstallLocalBuild.cmd, git,

- , codeplex!

:

, git , . , URL-. :

git remote set-url origin https://username@github.com/username/repository.git

+1
source

Source: https://habr.com/ru/post/1545107/


All Articles