This is because GCM is running as a Windows application, and therefore will use the Git for Windows installation to query configuration. Using GCM as a credential helper for a WSL Git installation means that any configuration set in WSL Git is NOT respected by GCM (by default). If GIT installed is >= v2.39.0 git config -global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"Įlse if GIT installed is >= v2.36.1 git config -global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager-core.exe"Įlse if version is < v2.36.1 enter this command: git config -global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe" To set up GCM for use with a WSL distribution, open your distribution and enter this command: See the GCM repo for instructions on how to configure WSL without Git for Windows. If you have a reason not to install Git for Windows, you can install GCM as a Linux application directly in your WSL distribution, but note that doing so means GCM is running as a Linux application and cannot utilize the authentication or credential storage features of the host Windows operating system. During the installation, you will be asked to select a credential helper, with GCM set as the default. Git Credential Manager is included with Git for Windows and the latest version is included in each new Git for Windows release. It is recommended to install the latest Git for Windows in order to share credentials
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |