You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Microsoft Windows [Version 10.0.16299.192]
I've set up git editor under WSL with the following comand: git config --global core.editor "'/mnt/c/Program Files/Sublime Text 3/subl.exe' -w"
I then cd myself into a local git repository in /mnt/c/Users/username/git/repo and run: git rebase -i
Sublime Text 3 is launched, but WSL hands it a path argument it can't work with: /mnt/c/Users/username/git/repo/.git/rebase-merge/git-rebase-todo
instead of the expected: C:\Users\username\git\repo\.git\-rebase-merge\git-rebase-todo.
Is there a facility to translate paths in WSL to their Windows counterparts dynamically?
The text was updated successfully, but these errors were encountered:
Yes, there is a tool called wslpath that should be available in your build. /bin/wslpath
wslpath usage:
-a force result to absolute path format
-u translate from a Windows path to a WSL path (default)
-w translate from a WSL path to a Windows path
-m translate from a WSL path to a Windows path, with ‘/’ instead of ‘\\’
EX: wslpath ‘c:\users’
I'm running Microsoft Windows [Version 10.0.16299.192]
I've set up git editor under WSL with the following comand:
git config --global core.editor "'/mnt/c/Program Files/Sublime Text 3/subl.exe' -w"
I then
cd
myself into a local git repository in/mnt/c/Users/username/git/repo
and run:git rebase -i
Sublime Text 3 is launched, but WSL hands it a path argument it can't work with:
/mnt/c/Users/username/git/repo/.git/rebase-merge/git-rebase-todo
instead of the expected:
C:\Users\username\git\repo\.git\-rebase-merge\git-rebase-todo
.Is there a facility to translate paths in WSL to their Windows counterparts dynamically?
The text was updated successfully, but these errors were encountered: