I am trying to add a submodule myapp
to my admin
directory, bith of which are gits. But I keep getting SSL certificate problem
. I have done git config http.sslVerify false
to try and get it to work (but I am not fully sure why this should help, it worked when I wanted to push to a master git push -u origin master
).Any ideas?
$ pwd
/c/Users/UserName/dir/admin
$ git submodule add ../myapp/
Cloning into 'myapp'...
fatal: unable to access 'https://myserver.com/gogs/user1/myapp/': SSL certificate problem: unable to get local issuer certificate
Clone of 'https://myserver.com/gogs/user1/myapp' into submodule path 'myapp' failed
$ git config --list |grep ssl
http.sslverify=false
$
EDIT1
Tried it again in a similar environment using ssh but something wrong with my access rights. Any ideas?
$ git submodule add ssh:../../lte_data_day_summary/
Cloning into 'sceal/lte_data_day_summary'...
ssh: Could not resolve hostname ssh: Temporary failure in name resolution
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of 'ssh:../../lte_data_day_summary/' into submodule path 'sceal/lte_data_day_summary' failed
$ pwd
/c/Users/User Name/dir1/dir2/sceal
EDIT2 - notes to self
global config
$ git config --global --list
user.email=you@example.com
http.sslverify=false
local config -- why is there 2? is this local and global?
$ git config --list | grep ssl
http.sslverify=false
http.sslverify=false