How to solve various SSL certificate problem problems when running Git commands
For example, if I use git clone gitURL in Windows
The SSL certificate problem: self signed certificate prompt is displayed.
This problem occurs frequently in windows. I guess git is mainly developed based on linux. On windows, it is easy to missing some environments.
According to some articles, the solution is "no matter what the ssl certificate is."-_-|
The method is as follows:
1. create temporary environment variables:
On Windows, enter the following command line:
Set GIT_SSL_NO_VERIFY = true git clone
In Linux:
Env GIT_SSL_NO_VERIFY = true git push here clon can be replaced with other git commands as needed.
You can also change the temporary environment variable to permanent. It is no risk to never verify the ssl certificate.
2. Use the configuration command that comes with git:
Git config -- global http. sslVerify false
Solve the problem.
GitHub Tutorials:
Create a personal technical blog via GitHub
GitHub tutorials
Git tag management details
Git branch management
Git remote repository details
Git local Repository (Repository) Details
Git server setup and Client installation
Git Overview
Share practical GitHub tutorials
GitHub details: click here
GitHub: click here
This article permanently updates the link address: