Skip to content

Commit a461ba7

Browse files
authored
docs: update WSL instructions for standalone GCM paths
Update the WSL documentation to point to the correct standalone system-wide GCM install, and also add a section about using the standalone\ user-only installer. The installation path is under `%LocalAppData%` in this case.
1 parent f28534a commit a461ba7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/wsl.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _Inside your WSL installation_, run the following command to set GCM as the Git
4444
credential helper:
4545

4646
```shell
47-
git config --global credential.helper /mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe
47+
git config --global credential.helper /mnt/c/Program\ Files\ \(x86\)/Git\ Credential\ Manager/git-credential-manager-core.exe
4848

4949
# For Azure DevOps support only
5050
git config --global credential.https://dev.azure.com.useHttpPath true
@@ -60,6 +60,13 @@ SETX WSLENV %WSLENV%:GIT_EXEC_PATH/wp
6060

6161
After updating the `WSLENV` environment variable, restart your WSL installation.
6262

63+
### Using the user-only GCM installer?
64+
65+
If you have installed GCM using the user-only installer (i.e, the `gcmuser-*.exe`
66+
installer and not the system-wide/admin required installer), you need to modify
67+
the above instructions to point to `/mnt/c/Users/<USERNAME>/AppData/Local/Programs/Git\ Credential\ Manager/git-credential-manager-core.exe`
68+
instead.
69+
6370
## How it works
6471

6572
GCM leverages the built-in interoperability between Windows and WSL, provided by

0 commit comments

Comments
 (0)