Sublime Forum

Sublime Merge on Windows with repositories in WSL2

#1

I am using Sublime Merge for Windows. My repositories are inside the file system of WSL2.
Sublime Merge says I cannot pull, because I have unstaged changes. It doesn’t show any changes itself and also the command-line Git inside WSL doesn’t show any changes.
I tried to change the “Git Binary” setting to “wsl git” in order to use the Git from WSL, but that doesn’t work either.
What can I do to make this work?

0 Likes

#2

I’m not sure if WSL 2 is fully supported yet:

These may be of use for you:

0 Likes

#3

In my experience it is much better to install Sublime Merge in WSL itself. You will need some X server running on windows to open the UI. Xming and VcXsrv both works fine.
If you have Windows 11 or a up to date Windows 10 (in Nov 2022) you probably have WSLg so you can just install Sublime Merge in WSL and run it without any need of any other X Server.

0 Likes