Lin Hong's TECH Blog! 刀不磨要生锈,人不学习要落后 - Thinking ahead

Github SpeedUp Tips

2020-04-04
Git
 

Github SpeedUp Tips

Speedup Github

Tools

Get dns ip via this tools GithubSpeedUp

	PS C:\Users\bigdatalyn\Documents\MobaXterm\home\GithubSpeedUp> python .\GSU.py do
	=============================================
	69.171.248.112 github.global.ssl.fastly.net
	13.229.188.59 github.com
	185.199.111.153 assets-cdn.github.com
	185.199.111.153 documentcloud.github.com
	59.24.3.173 gist.github.com
	185.199.110.154 help.github.com
	13.250.162.133 nodeload.github.com
	151.101.108.133 raw.github.com
	52.205.36.92 status.github.com
	140.82.113.17 training.github.com
	13.250.177.223 www.github.com
	151.101.228.133 avatars0.githubusercontent.com
	151.101.108.133 avatars1.githubusercontent.com
	185.199.108.154 github.githubassets.com
	52.217.42.236 github-production-release-asset-2e65be.s3.amazonaws.com
	54.169.195.247 api.github.com
	151.101.228.133 user-images.githubusercontent.com
	151.101.228.133 raw.githubusercontent.com
	151.101.108.133 gist.githubusercontent.com
	151.101.228.133 cloud.githubusercontent.com
	151.101.108.133 camo.githubusercontent.com
	151.101.76.133 avatars2.githubusercontent.com
	151.101.228.133 avatars3.githubusercontent.com
	151.101.228.133 avatars4.githubusercontent.com
	151.101.228.133 avatars5.githubusercontent.com
	151.101.108.133 avatars6.githubusercontent.com
	151.101.108.133 avatars8.githubusercontent.com
	185.199.110.153 github.io
	151.101.108.133 avatars7.githubusercontent.com
	=============================================
	PS C:\Users\bigdatalyn\Documents\MobaXterm\home\GithubSpeedUp>

Edit host file to speedup DNS analysis

Edit host file via Path:C:\Windows\System32\drivers\etc\host .

Copy the above ip generated by tool. (Need the administrator role in windows).

Update dns cache via cmd.

ipconfig /flushdns

git fetch tips

Create new directory and git init.

Use git remote add to get remote git.

Continue to execute git fetch to download it even if you down the git file and met network error.

Continue to execute git fetch to download it …

Finally checkout it.

	# initial.
	git init
	# add remote git.
	git remote add origin https://xxxx.git
	# download the branch.
	git fetch origin zzzz
	# fetch all...
	git fetch

Reference

win10 安装python3,设置为默认python环境,pycharm,并安装常用模块

Github访问加速

windows10 x64下安装python3.7.7

ModuleNotFoundError: No module named ‘XXXXXX’ 错误的解决办法:

> python -m pip install -U pip setuptools
> pip install XXXXXX


D:\Python37\Scripts>pip install requests
Collecting requests
  Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
	 |████████████████████████████████| 58 kB 34 kB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Downloading urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
	 |████████████████████████████████| 125 kB 8.0 kB/s
Collecting idna<3,>=2.5
  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
	 |████████████████████████████████| 58 kB 10 kB/s
Collecting certifi>=2017.4.17
  Downloading certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
	 |████████████████████████████████| 156 kB 6.4 kB/s
Collecting chardet<4,>=3.0.2
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
	 |████████████████████████████████| 133 kB 6.2 kB/s
Installing collected packages: urllib3, idna, certifi, chardet, requests
  WARNING: The script chardetect.exe is installed in 'd:\python37\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed certifi-2019.11.28 chardet-3.0.4 idna-2.9 requests-2.23.0 urllib3-1.25.8

D:\Python37\Scripts>

开发 Python 应用程序

ModuleNotFoundError: No module named ‘requests’

Have a good work&life! 2020/04 via LinHong


Similar Posts

上一篇 Markdown Tips

Comments