Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-01 02:38:39 10月03日 Update

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.

Tags: Agent speed content skills knowledge concise concise company certificate premise command that is situation article more version port article industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info Docker Shulou Technology Apple