https://blog.csdn.net/zenson_g/article/details/49148407
For two days, I don't know why, when submitting code to the server with Git, the error always occurs SSL certificate problem: unable to get local issuer certificate while accessing. I searched online and found the following solutions:
method one:
If you submitted from the command line, you can set the temporary environment variable GIT_SSL_NO_VERIFY with the following command.
Under Windows:
set GIT_SSL_NO_VERIFY=true git push
- 1
Under Linux:
env GIT_SSL_NO_VERIFY=true git push
- 1
Once set up, then commit with Git.
Of course, you can also set GIT_SSL_NO_VERIFY to a non-temporary environment variable, so that you don't have to execute the above command every time you commit.
Method Two:
You can also execute the following command on the command line and submit it later.
git config --global http.sslVerify false
- 1
The above two methods are effective for personal testing. It is recommended that the second method is to directly remove the ssl verification of git.