zaterdag 5 januari 2019

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


  1. Make sure you have installed Git for Windows
  2. Add the following to you ~/.gitconfig file 
    [credential]
        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.

Geen opmerkingen :

Een reactie posten