From 917c8244794c37412c556e1fab36a79b87df68f6 Mon Sep 17 00:00:00 2001 From: Matthew John Cheetham Date: Thu, 1 Oct 2026 11:05:30 +0100 Subject: [PATCH] docs: fix WSL without GfW paths The file paths for using GCM in WSL _without_ Git for Windows are only correct for the old x86 GCM installations. Update the docs to call out the x64 and ARM64 paths too, first. Signed-off-by: Matthew John Cheetham --- docs/wsl.md | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/docs/wsl.md b/docs/wsl.md index c37b4c234..dd6c80d3e 100644 --- a/docs/wsl.md +++ b/docs/wsl.md @@ -73,21 +73,27 @@ _Inside your WSL installation_, run the following command to set GCM as the Git credential helper: ```shell +# For x64 or ARM64 installations of Git Credential Manager +git config --global credential.helper "/mnt/c/Program\ Files/Git\ Credential\ Manager/git-credential-manager.exe" + +# For x86 installations of Git Credential Manager git config --global credential.helper "/mnt/c/Program\ Files\ \(x86\)/Git\ Credential\ Manager/git-credential-manager.exe" # For Azure DevOps support only git config --global credential.https://dev.azure.com.useHttpPath true ``` -In **_Windows_** you need to update the `WSLENV` environment variable to include -the value `GIT_EXEC_PATH/wp`. From an _Administrator_ Command Prompt run the -following: - -```batch -SETX WSLENV %WSLENV%:GIT_EXEC_PATH/wp -``` - -After updating the `WSLENV` environment variable, restart your WSL installation. +> [!IMPORTANT] +> In **_Windows_** you need to update the `WSLENV` environment variable to +> include the value `GIT_EXEC_PATH/wp`. From an _Administrator_ Command Prompt +> run the following: +> +> ```batch +> SETX WSLENV %WSLENV%:GIT_EXEC_PATH/wp +> ``` +> +> After updating the `WSLENV` environment variable, **restart your WSL +> installation**. ### Using the user-only GCM installer?