-
Notifications
You must be signed in to change notification settings - Fork 268
[Feature] Support for WSL git #1357
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
Draft
Draft
+67
−1
Conversation
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
@roguesaloon
roguesaloon
changed the title
(削除) Support for WSL git (削除ここまで)
(追記) [Feature] Support for WSL git (追記ここまで)
May 23, 2025
I don't recommend doing this. The reasons are:
SourceGit
supports to run on Linux platform. Users can run it in WSL distro directly.- Users can also store their local repo in Windows side, and use paths like
/mnt/<driver>/<path_to_repo>
to access this repo in WSL distro side. - In this PR:
- The file system monitoring feature may not work properly. This means that users may need to manually refresh to see the latest state of the repository.
Open in Terminal
may not work properly.
@love-linger Thanks for the feedback, you are also right on the functionality front. The terminal should be an easy fix but I'll likely need to find some more time to investigate a proper solution for the File Watcher (which I had completely missed wasn't working), so I'll put this into draft for now, until I can get back to it.
As for the motivation for supporting this:
- If we run SourceGit in WSL directly we need to effectively run it twice in two separate instances (on windows and linux). I personally have a handful of repos under windows and a handful under WSL, so this is annoying at best. Managing lots of repositories quickly in a centralized place is one of the main pros of using a GUI for git IMO.
- Storing files in
/mnt/c/dev
(which could be managed natively with windows git) for WSL isn't very practical due to major IO bottlnecks between the two. I have tried this and it effectively results in files being almost unusable for development (at least in WSL2, WSL1 does support this a bit better). - Other git GUIs like Kraken, Tower, and GitExtensions already support using WSL in this way, so it seems like a sensible idea.
@love-linger
love-linger
force-pushed
the
develop
branch
from
June 24, 2025 12:24
5ca1567
to
f657847
Compare
@love-linger
love-linger
force-pushed
the
develop
branch
6 times, most recently
from
July 21, 2025 09:52
05dba32
to
6822ae3
Compare
@love-linger
love-linger
force-pushed
the
develop
branch
3 times, most recently
from
July 28, 2025 13:30
072502a
to
5ce919a
Compare
@love-linger
love-linger
force-pushed
the
develop
branch
5 times, most recently
from
August 19, 2025 07:54
f325aaf
to
6511d15
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
Allows for sourcegit to use WSL git (from default distribution) when working inside a WSL directory with UNC path (i.e.
\\wsl.localhost
) on Windows. Dynamically chooses to use WSL git over windows git based on the filepath.This allows users to manage WSL repos through the same windows instance of sourcegit alongside windows repos, which is a huge win for my own personal workflow. Partly based on similar WSL implementation in GitExtensions.