How can you allow a Git in WSL use your Windows Git credentials?

Experience Level: Junior
Tags: WSL

Answer

If you have Git setup on Windows, you can use your Git credentials stored in Windows to do Git operations in Linux.

Run the following from bash:

git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"

Comments

No Comments Yet.
Be the first to tell us what you think.
Windows Subsystem for Linux (WSL)
Windows Subsystem for Linux (WSL)

Are you learning WSL ? Try our test we designed to help you progress faster.

Test yourself