Git: Cloning Repository without Valid Certification


When the repository is in GitLab with self-signed certificate, when the certificate is expired, git clone shows the following message.

In such case, adding new valid ssl certificate solves the problem, but the following method enable us to clone repository easily.

There are another way.

After cloning the repository, when you get error because of ssl certificate expiration, you can disable ssl verification for the specific one repository.

git config http.sslVerify false