Git not working in remote WSL
- VSCode Version: 1.36.0
- Local OS Version: Windows 10
- Remote OS Version: Ubuntu
- Remote Extension/Connection Type: WSL
Steps to Reproduce:
- Open VS Code, open remote wsl in new window
- Add folders to work space
Even though they are git repos and have a .git folder the source control view shows No source control providers registered

Does this issue occur when you try this locally?: Yes/No Does this issue occur when you try this locally and all extensions are disabled?: Yes/No
Git output
Looking for git in: git
Using git 2.22.0 from git
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --git-dir
> git rev-parse --show-toplevel
> git rev-parse --show-toplevel
I experienced similar issue today:
- VSCode Version: 1.37.0
- Local OS Version: Windows 10
- Remote OS Version: Ubuntu (only installed distro)
- Remote Extension/Connection Type: WSL 1
Changes made to files did not get reflected in Git version control in the UI. However, every time I restarted VScode the changes would be reflected (i.e., you can't see any saved changes made since the latest restart).
@scrossan-crown
Can you still reproduce this issue?
Same here. Since the introduction of remote wsl, I never saw any git interaction. I still need to reopen the directory in Windows to make use of it.
However I might have an idea. When I uncomment git.path=e:\\path\\to\\portable\\git.exe in my settings it seems to work.
The question is, how can I keep the path setting on windows while have it disabled in wsl?
Hey @joaomoreno, this issue might need further attention.
@scrossan-crown, you can help us out by closing this issue if the problem no longer exists, or adding more information.
I'm using remote WSL full time and git works fine.
@darkmattercoder In Remote WSL you must use git inside WSL, not the Windows one.