Download the code repository from github using GIT commands

Source: Internet
Author: User
Tags using git git commands

As the largest open source repository, GitHub is a programmer's paradise as a version control tool and an endless trove of treasures to discover. Now let's talk about how to download a project on GitHub locally, that is, build a project repository locally, and you'll be able to build the project later.

(1) Create a new folder locally and use the folder as a local repository. Then use the terminal command to enter the folder. For example, I use GitHub pages as a folder for this project.

.


(2) then initialize the repository with the command: Git init. A. Git hidden file is then created under this folder.

.


(3) You can then clone a repository remotely from GitHub, which is usually displayed on the right side of the project: copy this URL.


(4) Execute the following code at the terminal: Git clone *****url address. Note: This command must be executed in the directory just below. Wait a few seconds.


(5) Then go to the directory just to see, found that there is an extra project, this project is the GitHub remote Repository cloned project, at this time the two remain in sync.


Now you can develop this project, and then you can upload and synchronize with the code on GitHub for easy version control.

My personal blog homepage is http://www.chenyufengweb.com. Welcome to visit, is still in continuous improvement, I hope you give advice.



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Download the code repository from github using GIT commands

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.