Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upGit: Support WSL #9502
Comments
kieferrm
added
the
feature-request
label
Jul 20, 2016
kieferrm
assigned
joaomoreno
Jul 20, 2016
joaomoreno
added this to the Backlog milestone
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
Actually, it's still not yet out, so support for this will take its time. |
joaomoreno
changed the title
Only support Git for Windows,Please support Git for Bash on Ubuntu on Windows
Support Git for Bash on Ubuntu on Windows
Jul 21, 2016
This comment has been minimized.
This comment has been minimized.
johnbwoodruff
commented
Aug 6, 2016
It would be great to use Bash on Ubuntu on Windows as the integrated terminal! Not to mention its git installation for the git tab. I can't +1 this enough! :) |
This comment has been minimized.
This comment has been minimized.
johnbwoodruff
commented
Aug 31, 2016
Noticed that we can use the Bash on Ubuntu on Windows terminal in the integrated terminal now. That's awesome! Now we just need the git integration with the git version installed through bash on ubuntu on windows. |
This comment has been minimized.
This comment has been minimized.
dalyIsaac
commented
Sep 18, 2016
+1 |
joaomoreno
removed their assignment
Sep 19, 2016
This comment has been minimized.
This comment has been minimized.
ncarroll
commented
Oct 12, 2016
+1 |
1 similar comment
This comment has been minimized.
This comment has been minimized.
nmbradford
commented
Oct 19, 2016
+1 |
joaomoreno
added
the
help wanted
label
Oct 20, 2016
This comment has been minimized.
This comment has been minimized.
jonomacd
commented
Oct 31, 2016
This would be great not just for git but for extensions as well. I use the vscode-go extension and it shells out to use the command line tools often. I'd like it if it could shell out to bash as opposed to windows terminal. It would also need access to environment variables from bash. Basically, I want it to think it is in a bash environment even though it is in windows. Thanks. |
joaomoreno
referenced this issue
Dec 8, 2016
Closed
[Feature Request] Loading git executable from WSL #16859
This comment has been minimized.
This comment has been minimized.
ElieMyIdea
commented
Aug 24, 2017
+1 |
6 similar comments
This comment has been minimized.
This comment has been minimized.
andre2
commented
Aug 31, 2017
+1 |
This comment has been minimized.
This comment has been minimized.
doxiaodong
commented
Sep 4, 2017
+1 |
This comment has been minimized.
This comment has been minimized.
lobabob
commented
Sep 25, 2017
+1 |
This comment has been minimized.
This comment has been minimized.
EmmanuelVlad
commented
Sep 29, 2017
+1 |
This comment has been minimized.
This comment has been minimized.
kidpollo
commented
Oct 26, 2017
+1 |
This comment has been minimized.
This comment has been minimized.
mikhailbalin
commented
Nov 9, 2017
+1 |
bpasero
added
the
integrated-terminal
label
Nov 11, 2017
joaomoreno
added
the
WSL
label
Nov 17, 2017
This comment has been minimized.
This comment has been minimized.
lugolven
commented
Nov 17, 2017
+1 :) |
This comment has been minimized.
This comment has been minimized.
sgiradoa-psl
commented
Nov 17, 2017
+1 |
joaomoreno
changed the title
Support Git for Bash on Ubuntu on Windows
Git support for WSL
Nov 20, 2017
This comment has been minimized.
This comment has been minimized.
skippednote
commented
Nov 20, 2017
@joaomoreno Wanted to check if there any work being done on this WSL git + VSCode integration? |
This comment has been minimized.
This comment has been minimized.
pd93
commented
Jul 27, 2018
@sudesh-poojari I should clarify. I am not currently using Git with There is an open issue for implementing |
This comment has been minimized.
This comment has been minimized.
hangxingliu
commented
Jul 27, 2018
•
@pd93 Thanks for your guide. I pushed a new commit in my repository. include fixed a bug about Windows batch file (escaped characters) and By the way, Do you have a good idea about convert linux path in git output to Windows path by using |
This comment has been minimized.
This comment has been minimized.
pd93
commented
Jul 27, 2018
•
@hangxingliu the # Windows -> WSL
wslpath C:\\Users\\Pete
# Output: /mnt/c/Users/Pete
# WSL -> Windows
wslpath -w /mnt/c/Users/Pete
# Output: C:\Users\Pete You can also ensure that you get an absolute path by parsing the |
This comment has been minimized.
This comment has been minimized.
hangxingliu
commented
Jul 27, 2018
@pd93 That's right. Sometimes the output of git is only a path string, for example: > git rev-parse --show-toplevel
/mnt/c/repo1 But there are some conditions: the output of git is not only a path string, also many other description text .and maybe includes more than one path, for example: > git remote -v
local /mnt/c/local_remote (fetch)
local /mnt/c/local_remote (push)
origin git@github.com:hangxingliu/wslgit.git (fetch)
origin git@github.com:hangxingliu/wslgit.git (push) So It is hard to extract which part is a Linux path be mounted from Windows drive by using |
This comment has been minimized.
This comment has been minimized.
hangxingliu
commented
Jul 27, 2018
This comment has been minimized.
This comment has been minimized.
andy-5
commented
Jul 30, 2018
For anyone having performance issues with wslgit or similar tools, the slowdown is most likely caused by the execution of your Bash startup scripts (like For andy-s/wslgit specifically, you can force it to not start an interactive Bash shell, which skips executing |
This comment has been minimized.
This comment has been minimized.
mickeypuri
commented
Aug 16, 2018
•
Discussing with a colleague, he has simply set in vscode user preferences, the terminal.integrated.shell.windows to point to the bash.exe for WSL, and then set git.path in vscode preferences to the path in the WSL where git is installed e.g.
It appears to work however he is not using the vscode git plugin as it felt flaky. Is this a potential solution or is something being missed in this setup (as I know we are not meant to alter any files in the linux system using any windows tools)? (One point on the git.path, more recent installs of bash, will use a different path rather than the lxss folder as outlined here ) |
This comment has been minimized.
This comment has been minimized.
haddigan
commented
Aug 17, 2018
@mickeypuri I just tried this and VSCode is unable to find the source provider. What is it that appears to work if your colleague isn't using the source control integration? I'm not sure what setting |
This comment has been minimized.
This comment has been minimized.
galcianuk
commented
Aug 17, 2018
Would also like support for this! |
joaomoreno
referenced this issue
Aug 24, 2018
Closed
Built-in Git Sync error: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. #56664
joaomoreno
changed the title
Git support for WSL
Git: Support WSL
Sep 17, 2018
joaomoreno
removed
the
integrated-terminal
label
Sep 18, 2018
This comment has been minimized.
This comment has been minimized.
duttaditya18
commented
Oct 12, 2018
Can anyone take a look at this Gist by @victor-perez : https://gist.github.com/victor-perez/8ba25540394ec68b11f4b2699fb4d4ce It doesn't work for me. Can anyone else test it out? |
This comment has been minimized.
This comment has been minimized.
duttaditya18
commented
Oct 12, 2018
Figured it out by using this : https://github.com/andy-5/wslgit |
This comment has been minimized.
This comment has been minimized.
mike-zipit
commented
Nov 19, 2018
This is working for me: https://gist.github.com/victor-perez/8ba25540394ec68b11f4b2699fb4d4ce |
joaomoreno
referenced this issue
Dec 17, 2018
Closed
Git integration stops working with a custom WSL automount point in /etc/wsl.conf #65160
This comment has been minimized.
This comment has been minimized.
phifa
commented
Feb 8, 2019
@joaomoreno Integrating WSL GIT into VS Code would be amazing! Any updates here? |
This comment has been minimized.
This comment has been minimized.
mmirus
commented
Feb 8, 2019
@phifa I've been using it in VS Code for quite a while. IIRC all you need to do is save the latest "git.path": "C:\\tools\\wslgit.exe", |
This comment has been minimized.
This comment has been minimized.
murillorp
commented
Feb 8, 2019
•
@mmirus Yes, but we want to use this feature without downloading or installing anything on Windows other than WSL itself. |
This comment has been minimized.
This comment has been minimized.
nickjj
commented
Feb 8, 2019
Keep in mind if you go with the |
This comment has been minimized.
This comment has been minimized.
phifa
commented
Feb 11, 2019
@joaomoreno is a native integration in VSC planned? |
This comment has been minimized.
This comment has been minimized.
ruhulwebdev
commented
Feb 14, 2019
It's 2019.. It's been about 3 years since this issue was brought up... We see no progress at all.Git with vscode is the only reason I am in linux.. using wsl and git for windows together causes some crazy problems like losing permissions on some folders/files. So please vscode guys do something. |
This comment has been minimized.
This comment has been minimized.
mmirus
commented
Feb 14, 2019
I know it's not a permanent solution but if you haven't tried wslgit with vscode, give it a shot. It's stable and performs quite well for me. |
This comment has been minimized.
This comment has been minimized.
phifa
commented
Feb 14, 2019
Well I think a heads up would be good. Is it being worked on? Can we contribute or test? Don’t leave us in the dark |
This comment has been minimized.
This comment has been minimized.
pd93
commented
Feb 15, 2019
•
@phifa I think @mmirus is referring to https://github.com/andy-5/wslgit which is an unofficial workaround. Edit: Some have reported that it's quite slow compared to using Git for Windows, so I still prefer to have both Git for Windows and WSL installed. Only downside is that I have to ensure my SSH keys and .gitconfig are replicated. Would obviously prefer to stop using Git for Windows though! |
This comment has been minimized.
This comment has been minimized.
benc-uk
commented
Feb 18, 2019
wslgit is slow as hell and it's a cludgy workaround. Also SCM/git is just one part of the WSL integration we need from VSCode |
tianvan commentedJul 19, 2016