wslgit
wslgit copied to clipboard
invalid option error with WSL1
I installed newest wslgit release and add it to PATH.
wsl1: Ubuntu 18.04LTS git version in wsl1 : git version 2.17.1
wslgit /bin/bash: - : invalid option
Did you make any changes to .bashrc
or similar startup scripts? Or do you use a different shell like zsh
or fish
in WSL?
As a quick test to debug this, you could try to run something like the following
wsl -e bash -c "git version"
and see if that works. This command is basically what wslgit
runs internally.