


If there is any additional output when your bash shell starts, the VSCode Agent pid 123) during startup of an interactive bash shell. If you use a SSH agent, make sure that it does not print any text You cannot enter your passphrase in VSCode! Git repositories, or that your SSH key is added to a SSH agent running "git.path": "C:\\CHANGE\\TO\\PATH\\TO\\wslgit\\cmd\\wslgit.exe"Īlso make sure that you use an SSH key without password to access your If not, set the appropriate path in your VSCode settings.json: VSCode will find the git executable automatically if the two optional installation steps were taken. Link the ~/.ssh folder in all WSL dists to the. Tip: use symlinks to map files and folders in all distributions to a commonĭirectory to avoid having to maintain multiple copies, for example you can Quicker at accessing the Windows filesystem and can access mapped network drives Set the WSLGIT_DEFAULT_DIST to the name of a WSL1 instance since WSL1 is both If the default WSL distribution is of WSL2 type then it is highly recommended to

WSLGIT_DEFAULT_DIST environment variable is set. When accessing files on the Windows filesystem or a mapped network drive theĭefault WSL distribution is used unless the This means that git must be setup correctly in all ( \\wsl$\dist\path or \\wsl.localhost\dist\path) then the distribution used When accessing files on the filesystem in a WSL distribution using the UNC path Microsoft Visual C++ Redistributable for Visual Studio 2017. Add the wslgit\cmd directory to your Windows PathĮdit environment variables for your account into Start menu/Windows search The install.bat script creates a folder structure similar to the one used by Git For Windows,Īnd creates some useful symbolic links in the wslgit\cmd and wslgit\bin folders. Run the install.bat script as administrator. The latest binary release can be downloaded from the Visual Studio Code (VSCode) work with the git command installed in WSL.įor these two to interoperate, this tool translates pathsīetween the Windows ( C:\Foo\Bar) and Linux ( /mnt/c/Foo/Bar) The primary reason for this tool is to make the Git plugin in To git running inside Bash on Windows/Windows Subsystem for Linux (WSL). This project provides a small executable that forwards all arguments
