Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git remote and GIT_SSL_NO_VERIFY

Tags:

git

I have repository with SSH verification, but also I have second repository with clone method (GIT_SSL_NO_VERIFY=true git clone git-address).

How I can add second repository (git remote add ...)?

like image 850
grogsy Avatar asked Mar 21 '23 15:03

grogsy


1 Answers

To add a second remote with SSL verification off:

GIT_SSL_NO_VERIFY=true git remote add

Note that whenever you work with that remote, for example fetch, pull, and so on, you will need to prefix the commands with GIT_SSL_NO_VERIFY=true.

When that becomes annoying, you can disable SSL verification permanently for the working tree, by running:

git config http.sslVerify false

Note however that this will disable SSL verification for all remotes in the working tree. This is not a recommended practice, as it undermines the security of the other remotes.

like image 61
janos Avatar answered Mar 24 '23 04:03

janos