wslgit icon indicating copy to clipboard operation
wslgit copied to clipboard

invalid option error with WSL1

Open xiaok opened this issue 3 years ago • 1 comments

I installed newest wslgit release and add it to PATH.

wsl1: Ubuntu 18.04LTS git version in wsl1 : git version 2.17.1

image

wslgit /bin/bash: - : invalid option

xiaok avatar Sep 16 '20 02:09 xiaok

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.

andy-5 avatar Sep 17 '20 07:09 andy-5