How to set up a single agency Git repository to improve the update speed

How to set up a single agency Git repository to improve the update speed

Due to special reasons, it requires a separate set of remote agents Git repository, thereby improving the update speed.

The main reason is because there are some remote Git repository slower.

The original idea is the system global proxy, but then some domestic warehouse access and slow, and later think of a compromise approach is only one remote Git repository proxy, never improve access speed, while not affecting other projects, other the project continues to go direct connection.

First enter this repository using git-bash, the following commands can be entered directly, the agency changed its proxy addresses.

// F4NNIU  https://www.cnblogs.com/F4NNIU/p/11719160.html

cd myproject
git config http.proxy http://xxxxx:1080

Note that there are some tutorials error, in fact, only need to set http.proxy you can, you do not have to configure https.proxy

Original Address: https://www.cnblogs.com/F4NNIU/p/11719160.html

Guess you like

Origin www.cnblogs.com/F4NNIU/p/11719160.html