Solve the problem of slow access to GitHub

1. Applicable scenarios

  1. The problem of slow access to GitHub
  2. The problem that the pictures in the GitHub project are not displayed

Two, steps

  1. Click to get the file

  2. open the file with notepad

  3. 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

  4. Save the modification to the local hosts

  5. If it does not take effect, open the CMD window of Windows, enter ipconfig /flushdnsand press Enter

  6. If it still doesn't work, try restarting your computer

3. Advantages and disadvantages

  1. Advantages: simple operation, quick effect
  2. 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

  1. Original link: GitHub520

Guess you like

Origin blog.csdn.net/qq_45256357/article/details/131892194