Git tutorial download acceleration

method one

It is generally taken is to change the local host file, and then cmd command refreshes

1. Visit here , in order to obtain the following three url to ping ip

github.com
github.global.ssl.fastly.net
codeload.github.com

2. The need C:\Windows\System32\drivers\etcthen modify the properties related to github

192.30.253.113  github.com
151.101.25.194  github.global.ssl.fastly.net
192.30.253.121  codeload.github.com

3. Run ipconfig /flushdnscommand, flush the DNS cache.

Method 2 (recommended)

Pre-preparation: first of all they will open proxy, the proxy system mode to Global mode

1. Set the proxy mode Git

git config --global https.proxy http://127.0.0.1:1080

git config --global https.proxy https://127.0.0.1:1080

git config --global http.proxy 'socks5://127.0.0.1:1080' 

git config --global https.proxy 'socks5://127.0.0.1:1080'

2. Cancellation (not recommended)

git config --global --unset http.proxy

git config --global --unset https.proxy

3. confirmed by Git commands

git config --global --list

The results show

$ git config --global --list
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=**********             #用户名
user.email=*********@gmail.com   #注册邮箱
core.editor="D:\WDGJ\Sublime Text 3\sublime_text.exe" -w
http.http://github.com.proxy=http://127.0.0.1:1080
https.https://github.com.proxy=https://127.0.0.1:1080
http.proxy=http://127.0.0.1:1080

socks5 proxy can be obtained here

Method Three

Gitee use to transfer downloaded requirements: a github account, one yard cloud gitee account

  1. The above github project you want to get down to the first frok your github account to go. Time: instant
  2. Log gitee, not self-register. Web pages have a button to add an item, a plus sign. Click the plus sign, which has drop-down list of options for migrating github project, after opening the account associated with your github follow the prompts, then select the item you want to migrate, follow the prompts. Time: less than three minutes.
  3. According to clone github project method, clone migrate to gitee account of the project. The difference is replaced by a link destination linked clone project in gitee in. Download speed is usually MB / s units.

You can refer to the chiefs of the article

Guess you like

Origin www.cnblogs.com/J-Nemo/p/11260933.html