problem
For our domestic users, sometimes the browser when entering the github site will not load or loads slowly problem, solve this problem, it is a headache to solve this problem, search the Internet solution is as follows;
solution
- Modify the hosts file, add the following in the hosts file:
# GitHub Start
# 针对无法加载或加载慢的问题
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
# 下载慢问题
219.76.4.4 github-cloud.s3.amazonaws.com
# GitHub End
hosts file directory
- Windows:
C:\Windows\System32\drivers\etc\hosts
- Linux:
\etc\hosts
- Windows:
The method of entry into force of the revised
- Shutdown restart
- Off network reconnection
- Window: Win + R, type cmd enter, and then enter cmd window:
ipconfig /flushdns
- Linux: Ctrl + Alt + T to open the terminal and type
sudo rcnscd restart
problem
While simultaneously using git and github gitee;
solution
Modified version of the library .git/config
file, the file url github added and gitee corresponding repository, the following example, the I and gitee the PTA github repository url simultaneously added, and then use git ends can be synchronized simultaneously;
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://gitee.com/cunyu1943/PTA.git
url = https://github.com/cunyu1943/PTA.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Welcome attention to micro-channel public number: Murasame 1943; creation easy, without consent, please indicate the source ~