Store git credentials in WSL (Windows Subsystem for Linux)

This is a short guide for using wincred from Git for Windows in WSL (Windows Subsystem for Linux). All you have to do is add a view lines to you global .gitconfig

  • Make sure you have installed Git for Windows
  • Add the following to you ~/.gitconfig file
    helper = /mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-wincred.exe

Thats it, wincred will safely store you credentials in the Windows Credential Manager te next time git prompt you for authentication. From that point on wincred will take care of authentication.

Leave a Reply