-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOw to Use Your WSL Git inside VS Code .... #16427
Comments
@g0ld3lux Put any one of these four in your settings.json // 64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe" |
You can use it with |
Actually, it's NOT working. Not in the Creators Update, and with SSH keys - clicking on the sync icon gives an error. I can git push from WSL in an integrated terminal, but that isn't proper integration. I'm starting bash with the This loops back to an earlier issue (that I can't find right now) pertaining to Cygwin bash - we need a way to set environment variables for the git binary. |
There are no plans for the git integration to use git hosted within a WSL bash session. /cc @joaomoreno |
@rcarmo I can use it back here in the Anniversary Update, so I assume that a breaking change was made. |
Using WSL Git isn't the problem, guys. The problem is getting it to use SSH keys properly - that's a key security feature for a lot of orgs (and no, the credential manager and HTTPS isn't a good enough workaround).
For that to work, we need the ability to set environment variables for running Git, like I've pointed out before...
|
Is it Possible to Use WSL Git Instead of Installing Git for Windows to Avoid Duplication of Tools?
Coz I dont Installed On mY windows machine GIt, and other Dev Tools...
I prepare it to run inside WSL and just call an alias to perform same obligation...
The text was updated successfully, but these errors were encountered: