In this post, I will demonstrate how to resolve the following error when doing git clone:
The core error message is:
2. The environment
Ubuntu 18.04.5 LTS
Git version:git version 2.17.1
3. The solutions
What does the error mean? Here is an answer from bk2204 :
So, this problem is caused by the HTTPS/TLS/SSL , so the solution are as follows:
3.1 Solution #1
The simplest solution is to use http instead of https when doing git clone:
Replace:
with this:
Now run the command:
It works!!!
3.2 Solution #2
Turn off the https verification:
It will work if your git server uses a self-signed certification.
3.3 Solution #3
Recompile the local git version with ssl: (Remember to replace 1.7.9.5 with the actual version of git in your system.)
Now It’s working!
4. Summary
In this post, I demonstrated how to resolve the git clone error, you can try the methods as me. I recommend to use the solution #1, it’s simple. That’s it, thanks for your reading.
Final Words + More Resources
My intention with this article was to help others who might be considering solving such a problem.
So I hope that’s been the case here. If you still have any questions, don’t hesitate to ask me by
email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope: