The most comprehensive GitHub tutorial on the entire network

I. Introduction

In the previous article, we explained the construction of the Git server, the explanation of the Git local warehouse, the explanation of the Git remote warehouse, the Git branch management, and the Git tag management. In the Git server construction, we said that the first is to find a server to build the Git server by yourself. The method is also very simple. The previous article has introduced it. If you don’t know, you can check it. There is also a way to get a Git remote warehouse without having to build a Git server. This is what we are going to explain in this blog post, so let's get to know GitHub first. 

GitHub tutorial series articles :

Detailed explanation of GitHub usage tutorial graphics   http://www.linuxidc.com/Linux/2014-09/106230.htm

Detailed explanation of Git tag management  http://www.linuxidc.com/Linux/2014-09/106231.htm

Detailed explanation of Git branch management  http://www.linuxidc.com/Linux/2014-09/106232.htm

Detailed explanation of Git remote warehouse  http://www.linuxidc.com/Linux/2014-09/106233.htm

Git local repository (Repository) detailed explanation  http://www.linuxidc.com/Linux/2014-09/106234.htm

Git server construction and client installation   http://www.linuxidc.com/Linux/2014-05/101830.htm

Git overview  http://www.linuxidc.com/Linux/2014-05/101829.htm

2. Introduction to GitHub

GitHub can host various Git repositories and provide a web interface, but unlike other services like SourceForge or Google Code, GitHub's unique selling point is the ease of branching from another project. Contributing code to a project is very simple: first click the "fork" button on the project site, then check out the code and add the modifications to the code library just split, and finally be responsible to the project through the built-in "pull request" mechanism People apply for code merger. Someone already refers to GitHub as the MySpace for code players. GitHub is mainly implemented with Rails. In the following chapters we will explain the use of GitHub in detail.

Three, register GitHub account

1. Let's first register a GitHub account, as shown below:

github1

 

2. Let's take a brief look at the registration process below

github2

 

3. Simply enter the user name, email address, and password above and click Create to enter the next step, as shown below:

image

 

4. Simply fill in the above information, click to enter the next step, as shown below:

image

 

5. Fill in some simple organization information, click Next, as shown below:

image

Click "Finish", and our GitHub account is now registered.



Let's create a new Git repository. As shown below:

image

 

6. Click "New repository" on the right to create a repository, as shown below:

image

 

7. Let's fill in the warehouse name, write some description, and check the initialization warehouse README, as shown below:

image

Okay, here our first version library is created. What are we going to do next? Of course, use the local client to clone a copy.

 

Fourth, configure GitHub

1. What should we do before cloning the repository? We have to generate the public key first, then copy it to GitHub and then we can log in without a password, right? So let's continue, as shown below:

image

 

2. Below we copy the generated public key to GitHub, as shown below:

image

 

3. Click "Add ssh key", as shown below:

image

 

4. Click "Add key", as shown below:

image

Okay, here our GitHub configuration is complete here. Let's use GitHub.

 

Five, use GitHub

1. Clone the repository

image


2. Below we push the new page to the remote GitHub

image

 

3. Let's check it in the GitHub repository

image

Ok, here we can use GitHub to work, hehe.

 

6. Participate in other open source projects in GitHub

1. We have always used GitHub as a free remote repository. Of course, if you can, you can also pay to contribute to the open source world, hehe. If it is your own open source project, there is no problem putting it on GitHub. In fact, GitHub is still an open source collaborative community, through GitHub you can let others participate in your open source projects, you can also participate in others' open source projects. So how do we participate in an open source project? For example, the highly popular jquery framework, you can visit its project homepage https://github.com/jquery/jquery, click "Fork" to clone a jquery warehouse under your account, and then download it from your account clone. As shown below:

image

 

2. Click "fork" on the upper right foot, as shown below:

image

 

3. Below we clone a copy to the local

image

You can see that there are a lot of files, and cloning takes a while, please be patient, hey. Note that the clone repository must be cloned from your own account so that you can push changes. If you clone from the repository address [email protected]:jquery/jquery.git of the author of jquery, you will not be able to push changes because you do not have permission. If you want to fix a bug in jquery or add a new feature, I want to say that you can start development now, and push it to your own warehouse after the development is complete. If you want the official jquery library to accept your changes, you can initiate a pull request on GitHub. Of course, whether the official accepts your pull request is not certain. Hehe! 

How to build an organization on GitHub  http://www.linuxidc.com/Linux/2013-08/88197.htm

How to use under GitHub Linux  http://www.linuxidc.com/Linux/2013-06/86417.htm

Graphical tutorial on how to build a GitHub development environment in Eclipse under Windows  http://www.linuxidc.com/Linux/2013-06/85372.htm

R language 3.0.1 source code has been submitted to GitHub  http://www.linuxidc.com/Linux/2013-05/84425.htm

Import the Maven project into Eclipse4.2 from GitHub  http://www.linuxidc.com/Linux/2013-04/83082.htm

Share useful GitHub tutorials  http://www.linuxidc.com/Linux/2014-04/100556.htm

Seven, summary

Okay, here we are done on GitHub. Finally, I hope everyone has gained something ^_^……

Detailed introduction of GitHub : please click here  
GitHub download address : please click here


This article is transferred from: http://www.linuxidc.com/Linux/2014-09/106230.htm

Please note that reprinting is not my copyright!

           
               

I. Introduction

In the previous article, we explained the construction of the Git server, the explanation of the Git local warehouse, the explanation of the Git remote warehouse, the Git branch management, and the Git tag management. In the Git server construction, we said that the first is to find a server to build the Git server by yourself. The method is also very simple. The previous article has introduced it. If you don’t know, you can check it. There is also a way to get a Git remote warehouse without having to build a Git server. This is what we are going to explain in this blog post, so let's get to know GitHub first. 

GitHub tutorial series articles :

Detailed explanation of GitHub usage tutorial graphics   http://www.linuxidc.com/Linux/2014-09/106230.htm

Detailed explanation of Git tag management  http://www.linuxidc.com/Linux/2014-09/106231.htm

Detailed explanation of Git branch management  http://www.linuxidc.com/Linux/2014-09/106232.htm

Detailed explanation of Git remote warehouse  http://www.linuxidc.com/Linux/2014-09/106233.htm

Git local repository (Repository) detailed explanation  http://www.linuxidc.com/Linux/2014-09/106234.htm

Git server construction and client installation   http://www.linuxidc.com/Linux/2014-05/101830.htm

Git overview  http://www.linuxidc.com/Linux/2014-05/101829.htm

2. Introduction to GitHub

GitHub can host various Git repositories and provide a web interface, but unlike other services like SourceForge or Google Code, GitHub's unique selling point is the ease of branching from another project. Contributing code to a project is very simple: first click the "fork" button on the project site, then check out the code and add the modifications to the code library just split, and finally be responsible to the project through the built-in "pull request" mechanism People apply for code merger. Someone already refers to GitHub as the MySpace for code players. GitHub is mainly implemented with Rails. In the following chapters we will explain the use of GitHub in detail.

Three, register GitHub account

1. Let's first register a GitHub account, as shown below:

github1

 

2. Let's take a brief look at the registration process below

github2

 

3. Simply enter the user name, email address, and password above and click Create to enter the next step, as shown below:

image

 

4. Simply fill in the above information, click to enter the next step, as shown below:

image

 

5. Fill in some simple organization information, click Next, as shown below:

image

Click "Finish", and our GitHub account is now registered.



Let's create a new Git repository. As shown below:

image

 

6. Click "New repository" on the right to create a repository, as shown below:

image

 

7. Let's fill in the warehouse name, write some description, and check the initialization warehouse README, as shown below:

image

Okay, here our first version library is created. What are we going to do next? Of course, use the local client to clone a copy.

 

Fourth, configure GitHub

1. What should we do before cloning the repository? We have to generate the public key first, then copy it to GitHub and then we can log in without a password, right? So let's continue, as shown below:

image

 

2. Below we copy the generated public key to GitHub, as shown below:

image

 

3. Click "Add ssh key", as shown below:

image

 

4. Click "Add key", as shown below:

image

Okay, here our GitHub configuration is complete here. Let's use GitHub.

 

Five, use GitHub

1. Clone the repository

image


2. Below we push the new page to the remote GitHub

image

 

3. Let's check it in the GitHub repository

image

Ok, here we can use GitHub to work, hehe.

 

6. Participate in other open source projects in GitHub

1. We have always used GitHub as a free remote repository. Of course, if you can, you can also pay to contribute to the open source world, hehe. If it is your own open source project, there is no problem putting it on GitHub. In fact, GitHub is still an open source collaborative community, through GitHub you can let others participate in your open source projects, you can also participate in others' open source projects. So how do we participate in an open source project? For example, the highly popular jquery framework, you can visit its project homepage https://github.com/jquery/jquery, click "Fork" to clone a jquery warehouse under your account, and then download it from your account clone. As shown below:

image

 

2. Click "fork" on the upper right foot, as shown below:

image

 

3. Below we clone a copy to the local

image

You can see that there are a lot of files, and cloning takes a while, please be patient, hey. Note that the clone repository must be cloned from your own account so that you can push changes. If you clone from the repository address [email protected]:jquery/jquery.git of the author of jquery, you will not be able to push changes because you do not have permission. If you want to fix a bug in jquery or add a new feature, I want to say that you can start development now, and push it to your own warehouse after the development is complete. If you want the official jquery library to accept your changes, you can initiate a pull request on GitHub. Of course, whether the official accepts your pull request is not certain. Hehe! 

How to build an organization on GitHub  http://www.linuxidc.com/Linux/2013-08/88197.htm

How to use under GitHub Linux  http://www.linuxidc.com/Linux/2013-06/86417.htm

Graphical tutorial on how to build a GitHub development environment in Eclipse under Windows  http://www.linuxidc.com/Linux/2013-06/85372.htm

R language 3.0.1 source code has been submitted to GitHub  http://www.linuxidc.com/Linux/2013-05/84425.htm

Import the Maven project into Eclipse4.2 from GitHub  http://www.linuxidc.com/Linux/2013-04/83082.htm

Share useful GitHub tutorials  http://www.linuxidc.com/Linux/2014-04/100556.htm

Seven, summary

Okay, here we are done on GitHub. Finally, I hope everyone has gained something ^_^……

Detailed introduction of GitHub : please click here  
GitHub download address : please click here


This article is transferred from: http://www.linuxidc.com/Linux/2014-09/106230.htm

Please note that reprinting is not my copyright!

           

Guess you like

Origin blog.csdn.net/weixin_40535588/article/details/111933008