Skip to content

Commit 5344748

Browse files
authored
docs: fix WSL without GfW paths (#2461)
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. [Rendered docs](https://github.com/mjcheetham/git-credential-manager/blob/917c8244794c37412c556e1fab36a79b87df68f6/docs/wsl.md)
2 parents dab009e + 917c824 commit 5344748

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

‎docs/wsl.md‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,27 @@ _Inside your WSL installation_, run the following command to set GCM as the Git
7373
credential helper:
7474
7575
```shell
76+
# For x64 or ARM64 installations of Git Credential Manager
77+
git config --global credential.helper "/mnt/c/Program\ Files/Git\ Credential\ Manager/git-credential-manager.exe"
78+
79+
# For x86 installations of Git Credential Manager
7680
git config --global credential.helper "/mnt/c/Program\ Files\ \(x86\)/Git\ Credential\ Manager/git-credential-manager.exe"
7781
7882
# For Azure DevOps support only
7983
git config --global credential.https://dev.azure.com.useHttpPath true
8084
```
8185
82-
In **_Windows_** you need to update the `WSLENV` environment variable to include
83-
the value `GIT_EXEC_PATH/wp`. From an _Administrator_ Command Prompt run the
84-
following:
85-
86-
```batch
87-
SETX WSLENV %WSLENV%:GIT_EXEC_PATH/wp
88-
```
89-
90-
After updating the `WSLENV` environment variable, restart your WSL installation.
86+
> [!IMPORTANT]
87+
> In **_Windows_** you need to update the `WSLENV` environment variable to
88+
> include the value `GIT_EXEC_PATH/wp`. From an _Administrator_ Command Prompt
89+
> run the following:
90+
>
91+
> ```batch
92+
> SETX WSLENV %WSLENV%:GIT_EXEC_PATH/wp
93+
> ```
94+
>
95+
> After updating the `WSLENV` environment variable, **restart your WSL
96+
> installation**.
9197
9298
### Using the user-only GCM installer?
9399

0 commit comments

Comments
 (0)