MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.88k stars 554 forks source link

Git for Windows installs into %USER%\AppData\... #1873

Open GreySpike opened 6 months ago

GreySpike commented 6 months ago

Documentation Issue

The path to GCM is no longer, at least for git version 2.43.0.windows.1, git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager.exe" but git config --global credential.helper "/mnt/c/Users/XXXX/AppData/local/Programs/Git/mingw64/bin/git-credential-manager.exe"

Link to documentation page

https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git#git-credential-manager-setup

Suggested Improvements

Add a new version section to give the correct path for GCM.

Also the box note implies that all git config in WSL should be repeated for Windows git; is that always true or only for specific config? Clarify and provide both Windows and WSL examples if the recommendation is to keep them in sync.