How to solve the slow cloning of GitHub code on Ubuntu virtual machine

Source: Internet
Author: User
Tags net domain git clone

On Ubuntu to fix the slow way to access GitHub:

1, enter the terminal command line mode, input sudo vi/etc/hosts
2, English input Gg,vim editor jumps to the last line of the Hosts file
3. Access ipaddress.com using the IP Lookup tool to obtain the IP address of the github.com and github.global.ssl.fastly.net domain names with the browser
4. In the vi open Hosts file, add the following format:
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
5. ESC exit Edit mode, enter: Wq, save Hosts file, modify hosts end
6. Update the DNS cache, enter sudo/etc/init.d/networking restart

7, and then use Git clone, pro-test effective.

To resolve slow cloning of GitHub code on Ubuntu virtual machines

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.