To use multiple GitHub accounts properly, there is a way to SSH into one account. However, since Git LFS files on GitHub are only HTTPS and cannot be SSH, they cannot be downloaded. Therefore, I use multiple accounts properly with HTTPS in the Credential Manager namespace.
Git for WindowsCheck Enable Git Credential Manager in the installation wizardCredential Manager for GitWe will install them together.
No special settings are required. If you authenticate by performing a git clone or the like, git: https://github.comが追加されます will be the Windows credentials in the credential manager in the control panel.
If you set a namespace in Credential Manager, the git: at the beginning of the credentials will change, and you can use multiple accounts properly.
If you clone and open the credential manager after the authentication has passed, sub: https://github.comが追加されています.
For details, see Credential Manager for Windowscredential.namespaceSee.
Git config'sConditional IncludesIf you use it, it seems that credential.namespace can be set to the folder specified by gitdir:, but since Credential Manager does not support Conditional Includes, it cannot be used. I've submitted a request to issues, so if you're interested, please respond and comment.