How do I set GIT_SSL_NO_VERIFY for specific repos only?

Charles Randall picture Charles Randall · Jan 25, 2012 · Viewed 645.1k times · Source

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?

Answer

Joachim Isaksson picture Joachim Isaksson · Jan 25, 2012

You can do

git config http.sslVerify "false"

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