Skip to content

Instantly share code, notes, and snippets.

View alerGeek's full-sized avatar

T. Ania alerGeek

View GitHub Profile
@onecrayon
onecrayon / README.md
Last active April 21, 2024 22:18
Use git installed in Windows Subsystem for Linux in Visual Studio Code

Proxy commands from Windows command line to Bash using the Windows Subsystem for Linux (WSL)

These scripts allow you to proxy commands (specifically git, in this example) to the Windows Subsystem for Linux from the normal Windows command line environment. This allows you to work with a single installation of git (under your Linux distribution) instead of trying to manage two concurrent installations.

I explicitly created these scripts to allow using Git in Visual Studio Code without installing it under Windows.

Please note that I have not extensively tested edge cases! If you run into problems, please let me know!

Using WSL git in Visual Studio Code