How to use Git credential store on WSL (Ubuntu on Windows)?

前端 未结 5 437
有刺的猬
有刺的猬 2021-01-30 08:03

I\'ve tried following these instructions: https://stackoverflow.com/a/40312117/21728 which basically do this:

sudo apt-get install libsecret-1-0 libsecret-1-dev
         


        
5条回答
  •  感情败类
    2021-01-30 09:04

    If you installed Git for Windows there is a windows integrated credential manager installed on your system.

    You can run windows executables from WSL as found here.

    To use it you can run the following command (assuming that your git for windows is installed on C:\Program Files\Git)

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

提交回复
热议问题