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
I've created a script that does this for you. I use it with my Chef orchestration.
cmd.exe
and call where git-credential-manager.exe
cmd.exe
call where git.exe
C:\Program Files\Git\cmd\git.exe
C:\Program Files\Git\mingw64\libexec\git-core\git-credential-manager.exe
where
again to get the path.We need to:
C:\
with /mnt/c/
\
to /
\\
So...
"C:\Program Files\Git\mingw64\libexec\git-core\git-credential-manager.exe"
becomes..."/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager.exe"
My script above has a function for doing just that
dos_path_to_linux(){
sed -e 's?\\?/?g' -e' s?[cC]:?/mnt/c?' <<<"$1"
}
But, as @12345ieee has since commented, a wslpath
utility has been added to WSL build 17046. It's worth checking out, but I don't have access to Windows at this time to verify. (Note that even though a usage statement is given in the release notes in my link, it seems that the command doesn't currently include a usage statement, -h, etc.)
bash
call git config --global credential.helper ""