Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set GIT_SSL_NO_VERIFY for specific repos only?

Tags:

git

ssl

I have to use a git server without proper certificates, but I don't want to have to do

env GIT_SSL_NO_VERIFY=true git command 

every single time I do a git operation. But I would also like to leave SSL enabled for other git repositories. Is there a way to make this local to a single repo?

like image 347
Charles Randall Avatar asked Jan 25 '12 18:01

Charles Randall


People also ask

How do I set http sslVerify false in git configuration?

Go in Eclipse Preferences -> Team -> Git -> Configuration, and click "Add Entry..." Put "http. sslVerify" as key and "false" as value (no quotes).

How do I ignore a certificate in git?

Prepend GIT_SSL_NO_VERIFY=true before every git command run to skip SSL verification. This is particularly useful if you haven't checked out the repository yet. Run git config http. sslVerify false to disable SSL verification if you're working with a checked out repository already.

What is sslVerify in git?

git config — — global http.sslVerify falseThis error occur when self-signed certificate cannot be verified. By default the git verifies the self-signed certificate every time you push or pull the fixes to and from git server.


2 Answers

You can do

git config http.sslVerify "false" 

in your specific repo to disable SSL certificate checking for that repo only.

like image 110
Joachim Isaksson Avatar answered Oct 04 '22 15:10

Joachim Isaksson


You can do as follows

For a single repo

git config http.sslVerify false 

For all repo

git config --global http.sslVerify false 
like image 38
Thirumalai murugan Avatar answered Oct 04 '22 14:10

Thirumalai murugan