Version Control-GitHub, control-github

Source: Internet
Author: User

Version Control-GitHub, control-github

In the previous articles, we introduced the basic usage of Git and the establishment of Git servers. This article will learn how to use GitHub. GitHub is an open-source code library and version control library. It is the most widely used service on the Internet. GitHub can host various Git libraries.

First, register a GitHub account and click Register sign up at https://github.com. The procedure is as follows:

1. Click "sign up" to enter the following page. on this page, enter basic information and click "Create an account" to Create an account.

2. Click "create an account" to go to the subsequent interface. Github is free of charge for open-source public projects. If you want to create a private version library, you can pay by the number of private libraries. For details, refer. By default, Free is selected, that is, the current account can only create open source libraries on github.

For your own use, click "Finish sign up" here. Of course, you can continue to improve other information and do not repeat it too much here.

In this way, we have created a GitHub account. After logging in with a registered account, we can create a version library as follows:

1. the login interface is as follows: click "+ New repository"

2. Go to the version Library Creation page and enter the specific information, such as the project name and project description. Check the description file README and click "Create Repository" to Create a version library.

After creation, the details page is as follows:

After the version is created, how can we access it locally? The following two methods are used: Common and client provided by GitHub.

1. Configure GitHub on the client. First, we need to generate a public key to log on to GitHub. We have also introduced it before and can operate the following commands.

2. After the public key is generated, configure the public key content in github as follows:

Go to the Setting interface on github and find the SSH keys

Click "SSH keys" to save the Public Key generated above in GitHub.

3. After completing the preceding configuration, run git clone on the client to clone the version library on github to the client.

4. edit the file and push it to github.

5. log on to github and you can see the file we just pushed from the client.

 

If you have any questions or technical exchanges, please join the official QQ group: (452379712)

Author: Jerry Education
Source: http://www.cnblogs.com/jerehedu/
The copyright of this article belongs to Yantai Jerry Education Technology Co., Ltd. and the blog Park. You are welcome to repost it. However, you must keep this statement without the author's consent and provide the original article connection on the article page, otherwise, you are entitled to pursue legal liability.

Related Article

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.