-
-
Save tclh123/38cd19a93ff1a085fde84bf138e68a16 to your computer and use it in GitHub Desktop.
Use WSL git inside VS Code from Windows 10 17046
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
wsl wslpath -aw $(git %*) 2> nul | |
if not %errorlevel% == 0 ( | |
wsl git %* | |
) | |
@echo on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"git.path": "C:\\Tools\\git.bat" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment