Solve the problem of slow access to GitHub
1. Applicable scenarios
- The problem of slow access to GitHub
- The problem that the pictures in the GitHub project are not displayed
Two, steps
-
Click to get the file
-
open the file with notepad
-
Copy and paste the contents of the file into the local hosts file
The hosts file of the Windows system is
C:\Windows\System32\drivers\etc\
under the folder -
Save the modification to the local hosts
-
If it does not take effect, open the CMD window of Windows, enter
ipconfig /flushdns
and press Enter -
If it still doesn't work, try restarting your computer
3. Advantages and disadvantages
- Advantages: simple operation, quick effect
- Disadvantage: The duration of the effect is not fixed, it is recommended to pay more attention to the content of the file and update the hosts file in time
4. References
- Original link: GitHub520