Vscode: Support WSL git

Created on 29 Jun 2017  路  7Comments  路  Source: microsoft/vscode

I have installed git in wsl and how can I deploy it to my vscode

WSL feature-request git

Most helpful comment

Very confusing for windows users to have two separate git client installs, two sets of ssh keys for the same service, etc depending on whether or not they're using wsl bash.

Would be excellent if setting the terminal as wsl bash automatically defaulted to using wsl git as well.

All 7 comments

To add to this. I'd like to be able to tell Visual Studio Code to not only allow you to tell the terminal to use WSL Bash but also configure it specify the path to the git client to use, or the shell, so that git commands issued use the WSL copy (so it picks up the ssh keys etc in that shell) and also run any git hooks in the bash shell too.

This should be great.

This would be great.

To illustrate the difference: git on windows does not properly handle symlinks (They seem to be invisible to NTFS in 'windows mode'), but WSL git properly handles these symlinks.

Very confusing for windows users to have two separate git client installs, two sets of ssh keys for the same service, etc depending on whether or not they're using wsl bash.

Would be excellent if setting the terminal as wsl bash automatically defaulted to using wsl git as well.

Facing the same issue

@zmsy I'm moving off topic, but shouldn't you be able to use a single set of SSH keys? When you do keygen, save them in /mnt/c/Users/USERNAME/.ssh - then you can add that same path when you use ssh-agent.

Correct me if wrong!

Duplicate of #9502

Was this page helpful?
0 / 5 - 0 ratings