In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to solve the failure of git cloning". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's ideas to study and learn how to solve the failure of git cloning.
The solution to the failure of git cloning: 1, execute the "git config-- global http.postBuffer 524288000" command; 2, add the IP address to / etc/hosts; 3, refresh the dns cache.
This article operating environment: Windows10 system, Git version 2.30.0, Dell G3 computer.
What if git cloning fails?
Failed to clone a project on github using git
Phenomenon
Today, when using git clone nextjs demo project source code, the download speed of git clone https://github.com/XXXX/next-blog.git is very slow, and then after downloading for a period of time, it always prompts the following error message
NCloning into 'next-blog'...remote: Enumerating objects: 111, done.remote: Counting objects: 100% (111), done.remote: Compressing objects: 100% (83), done.error: RPC failed; curl 18 transfer closed with outstanding read data remainingfatal: The remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed cause
Due to Http protocol errors, when pull or clone, or some CDN of github is shielded by a great wall.
Solution protocol error
Execute the following command first
Git config-global http.postBuffer 524288000
Then execute the git pull or git clone command
Wall shielding
Visit http://github.global.ssl.fast...
Get the cdn domain name and IP address
Visit http://github.com.ipaddress.c... Get the cdn domain name and IP address
Add the IP address obtained above to / etc/hosts
Sudo vim / etc/hosts
Refresh the dns cache
Sudo killall-HUP mDNSRespondersudo dscacheutil-flushcache results
When performing the git clone operation again, the speed whizzed up, reaching hundreds of Kb at a time.
Thank you for your reading, the above is the content of "how to solve the failure of git cloning". After the study of this article, I believe you have a deeper understanding of how to solve the problem of failure of git cloning. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.