andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

Just add it to the PATH #64

Closed spences10 closed 5 years ago

spences10 commented 5 years ago

Just put the executable somewhere on your PATH and optionally rename it to git.exe. You can then just run any git command from a Windows console by running wslgit COMMAND or git COMMAND and it uses the Git version installed in WSL.

Please, saying just add it to the PATH doesn't help people that don't know how to just add to the PATH, can you be specific please as it's a bit ambiguous how to do this. 🙏

Add it to what path? The Windows one, the WSL one? It's not clear, if there was an example of how to add to the PATH then it would be very clear.

falfiya commented 5 years ago

If you're trying to let Windows interface with wsl's git installation, it wouldn't make any sense to add it to wsl's path. If you don't know how to add directories into Windows' path, it's a simple search away. image

andy-5 commented 5 years ago

Yes, exactly as described by @Coalpha.

I've changed the Readme to clarify this a bit. Thanks for the hint.