Skip to content

Instantly share code, notes, and snippets.

@zeqk
Created December 17, 2020 15:50
Show Gist options
  • Save zeqk/73d693f81e916d8f066ae0a49db6a564 to your computer and use it in GitHub Desktop.
Save zeqk/73d693f81e916d8f066ae0a49db6a564 to your computer and use it in GitHub Desktop.

Set up GIT in WSL

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

Reference How do I set up Git Credential Manager? (How do I use my Windows Git permissions in WSL?)

git-credential-manager.exe Permission denied

git clone https://...

Error

 'git-credential-manager.exe': Permission denied

Fix

In WSL

sudo nano /etc/wsl.conf
[automount]
enabled = true
mountFsTab = true
options = "metadata,umask=22,fmask=33"

Restart WSL

wsl --shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment