git-plus icon indicating copy to clipboard operation
git-plus copied to clipboard

Question: Can it run git from wsl

Open StephaneKazmierczak opened this issue 7 years ago • 2 comments

Hello,

I am using windows 10 with windows subsystem for linux (wsl) I have been using vim for a while now, so everything is already configurated on the wsl side: ssh, git ... I was wondering if git-plus atom from windows could recognise the wsl git and ssh?

StephaneKazmierczak avatar May 01 '18 18:05 StephaneKazmierczak

I'm not sure. I think the answer is no though. This package is going to use the git it finds in your PATH or that you specify in its settings. Perhaps if you use the the path to the git command for your wsl in the settings, that might work. That's only if it's possible to run wsl's git from your windows command prompt too

akonwi avatar Jul 04 '18 05:07 akonwi

You need a wrapper like GitWrap becaus you cannot run linux binarys from windows shell. you have to run linux binarys like this: bash.exe -c git next thing is, that your C-drive is mapped as /mnt/c/ on wsl. so you have to convert any paths passed to git.

kritzi avatar Aug 05 '18 23:08 kritzi