@leokhoa Thanks for your response. As you can tell I'm new at this.
So, I tried some things and I'm still getting errors. This is from a basic first-time install of Laragon Full 4.0 with no previous version of GIT installed on a new Windows 10 Home machine.
- Cmder:
C:\laragon\www
λ cd %DOCUMENT_ROOT%
C:\laragon\www
λ git clone https://github.com/apache/cordova-plugin-statusbar.git
Cloning into 'cordova-plugin-statusbar'...
error: cannot spawn git: Invalid argument
- If I run c:/laragon/bin/git/git-cmd.exe
C:\laragon\bin\git>cd %DOCUMENT_ROOT%
The system cannot find the path specified.
C:\laragon\bin\git>cd..
C:\laragon\bin>cd..
C:\laragon>cd www
C:\laragon\www>git clone https://github.com/apache/cordova-plugin-statusbar.git
Cloning into 'cordova-plugin-statusbar'...
error: cannot spawn git: Invalid argument
Notes:
a. Running git-cmd it didn't know where %DOCUMENT_ROOT% was (maybe expected behavior?).
b. c:/laragon/bin/git still has a 278MB install tar file in the directory. Maybe it didn't install properly?
c. Menu / Laragon / laragon.log is empty (maybe expected?)
d. laragon.ini - no GIT settings in here (maybe expected?)
** Extra note. After this I uninstalled Laragon, deleted remaining environment paths, disabled laragon from starting (it left a legacy start up task which repopulated the environment paths), then reinstalled Laragon. I was getting the exactly the same error message and behavior.
** More Notes. Here is a dump of my Cmder log when trying to set up some SSH keys along with the SSH agent:
C:\laragon\www
λ git config -l
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=John King
user.email=<< My email address >>
C:\laragon\www
λ ssh-keygen -t rsa -b 4096 -C "<< My email address >>"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/John King/.ssh/id_rsa):
/c/Users/John King/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/John King/.ssh/id_rsa.
Your public key has been saved in /c/Users/John King/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:**********************************
The key's randomart image is:
C:\laragon\www
λ ls -al ~/.ssh
total 24
drwxr-xr-x 1 John King 197121 0 Nov 19 18:46 .
drwxr-xr-x 1 John King 197121 0 Nov 20 12:51 ..
-rw-r--r-- 1 John King 197121 3326 Nov 20 13:03 id_rsa
-rw-r--r-- 1 John King 197121 749 Nov 20 13:03 id_rsa.pub
-rw-r--r-- 1 John King 197121 800 Nov 19 19:01 known_hosts
C:\laragon\www
λ eval $(ssh-agent -s)
'eval' is not recognized as an internal or external command,
operable program or batch file.
C:\laragon\www
λ ssh-agent -s
SSH_AUTH_SOCK=/tmp/ssh-Lzipy7uInXjx/agent.10264; export SSH_AUTH_SOCK;
SSH_AGENT_PID=7896; export SSH_AGENT_PID;
echo Agent pid 7896;
C:\laragon\www
λ ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.
C:\laragon\www
λ echo $HOME
$HOME
C:\laragon\www
λ start-ssh-agent.cmd
Removing old ssh-agent sockets
Starting ssh-agent: done
Enter passphrase for /c/Users/John King/.ssh/id_rsa:
Identity added: /c/Users/John King/.ssh/id_rsa (/c/Users/John King/.ssh/id_rsa)
C:\laragon\www
λ ssh-add ~/.ssh/id_rsa
Enter passphrase for /c/Users/John King/.ssh/id_rsa:
Identity added: /c/Users/John King/.ssh/id_rsa (/c/Users/John King/.ssh/id_rsa)
C:\laragon\www
λ git clone https://github.com/apache/cordova-plugin-statusbar.git
Cloning into 'cordova-plugin-statusbar'...
error: cannot spawn git: Invalid argument