Skip to content

Commit dab009e

Browse files
authored
docs: update WSL docs to use correct GfW install paths (#2460)
Different versions of Git for Windows have different installation path prefixes; our existing docs only reference the mingw64 toolchain path. Update the docs to call out the different installation paths for x64 (UCRT64 and MINGW64), and ARM64 (CLANGARM64). [Rendered docs](https://github.com/mjcheetham/git-credential-manager/blob/a091842e6200cca938df97fb3750d4dd48008951/docs/wsl.md)
2 parents bb83cfc + a091842 commit dab009e

1 file changed

Lines changed: 31 additions & 5 deletions

File tree

‎docs/wsl.md‎

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,46 @@ Start by installing the [latest Git for Windows ⬇️][latest-git-for-windows]
2121
_Inside your WSL installation_, run the following command to set GCM as the Git
2222
credential helper:
2323

24+
> [!IMPORTANT]
25+
> The exact location of git-credential-manager.exe may be different in your
26+
> installation of Git for Windows depending on the version you have installed.
27+
> Please check and confirm the actual installation path before proceeding.
28+
29+
### Git for Windows (x64 / x86_64 / "64-bit")
30+
31+
The latest versions of Git for Windows for x64 (v2.56.0 and later) use the
32+
`ucrt64` toolchain and installation path:
33+
34+
```shell
35+
git config --global credential.helper "/mnt/c/Program\ Files/Git/ucrt64/bin/git-credential-manager.exe"
36+
```
37+
38+
Older versions of Git for Windows for x64 (v2.55.x and earlier) use the
39+
`mingw64` toolchain and installation path:
40+
2441
```shell
2542
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe"
2643
```
2744

28-
> **Note:** the location of git-credential-manager.exe may be different in your
29-
installation of Git for Windows.
45+
### Git for Windows (ARM64)
3046

31-
If you intend to use Azure DevOps you must _also_ set the following Git
32-
configuration _inside of your WSL installation_.
47+
All known versions of Git for Windows for ARM64 use the `clangarm64` toolchain
48+
and installation path:
3349

3450
```shell
35-
git config --global credential.https://dev.azure.com.useHttpPath true
51+
git config --global credential.helper "/mnt/c/Program\ Files/Git/clangarm64/bin/git-credential-manager.exe"
3652
```
3753

54+
## Azure DevOps Additional Configuration
55+
56+
> [!IMPORTANT]
57+
> If you intend to use Azure DevOps you must _also_ set the following Git
58+
> configuration _inside of your WSL installation_.
59+
>
60+
> ```shell
61+
> git config --global credential.https://dev.azure.com.useHttpPath true
62+
> ```
63+
3864
## Configuring WSL without Git for Windows
3965
4066
If you wish to use GCM inside of WSL _without installing Git for Windows_

0 commit comments

Comments
 (0)