Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up agents for git to increase github clone Speed

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to set up agents to improve the speed of git github clone, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.

The access speed of github in China is very slow, and the speed of a clone project is more than 10 k per second. Here is the speed of spark maintained by our clone company.

After setting up the proxy.

The speed has increased a lot.

1. Set up proxy

The premise is that you have a faster agent.

# git clone http://...

Git config-global http.proxy socks5://127.0.0.1:1080

# git clone https://...

Git config-global https.proxy socks5://127.0.0.1:1080

# git clone git://...

Git config-global core.gitproxy socks5://127.0.0.1:1080

The port depends on your own situation. Generally, the default is 8080, and my setting is 11091.

two。 Cancel the agent

Git config-global-unset http.proxy

Git config-global-unset https.proxy

Git config-global-unset core.gitproxy

If you have previously set up an agent, or if you want to cancel the agent, you can use these commands

3. Encountered HttpReQuestException encoutered & & repository not found problems when using https clone

Github disabled TLS v1.0 and v1.1 and Windows's git credential Manager must be updated.

Https://github.com/microsoft/Git-Credential-Manager-for-Windows/releases

Find the latest releases version and download and install it

The above content is how git sets up agents to improve the speed of github clone. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report