1. Github is an online custody platform with source code, which provides version control and collaborative working functions.
. Step of github use:
In GitHub, the knowledge base is always used to organize a certain project. The knowledge base can include folders, files, pictures, audio, video, data tables or data sets-any files required by your project. Step 2. Create a branch
The branches are the same way of distinguishing the version of a knowledge base or project.
The default situation will have a master branch in each knowledge base. This is the main branch of the project, which can be understood as the production environment or formal environment of the project. Step 3. Modify and submit
The is currently in the Readme-Edits branch, which is a copy of Master. Next, make some modifications.
Mit the modification and submission of the modification and submission of the modification and submission of it. Each Commit requires a commitmessage to illustrate the purpose of this modification. Commit messages preserve all modified logs so that others can see what modifications this project has made and why these modifications are done. Step 4. Create a merger request
merging request is the core of GitHub for teamwork. When creating a merger request, what you make is to modify the merger to the merger to the merger to Go in other branches. When the consolidated request, the two branches will be displayed, and it will be identified or deleted by green and red. Step 5. Merge request
This in this last step is to merge the branch of the branch you modified to the Master branch. Click the MergePullRequest button. Click Confirmmerge. The click Deletebranch button to delete the branches that are no longer needed.
What is GitHub: Git is a distributed version control system, which was originally written by Linus Torvalds and used as the management of Linux kernel code. After launch, Git has also achieved great success in other projects, especially in the Ruby community. At present, many well -known projects including Rubinius and Merb have used Git. Git can also be used by deployment tools such as Vlad The Deployer. github tutorial: 1. Download github for windows in the system heaven, and then install it without installation 2. Login, open github after installation, log in with your GitHub account. What you need to pay attention to, github for Windows will help you create SSH Key. You should receive the email to help you create SSH Key information, which also saves a lot of things: 3. Create a warehouse. Click the " ADD" button above to create a new warehouse and enter the relevant information: . The newly -built warehouse has not been really submitted to the local warehouse, which is equivalent to this is just a new modification. GitHub simplifies some operations. In the process, for any modification, you only need to add a comment to submit it to the local warehouse, and then you can submit to the remote warehouse at this time, so let's add a comment: after each comments are added, it is equivalent to toward direction. A version of the local warehouse is submitted, and then you can choose a version to submit it to the distant warehouse. 5. At this time, we can publish a warehouse. After the publish, the button becomes in sync text, which means that the future modification and submission will be synchronized. : 6. Add projects, warehouses are stored locally in a folder, github for Windows will monitor this folder, any modification will be seen in the warehouse, and then add a comment as above to submit the modification to the modification to Local warehouse, here we open the warehouse directory and add a project to it: 7. Submit the modification to the local warehouse and return to GitHub for Windows. Go to the local warehouse: 8. Finally, click SYNC to submit the local warehouse to github 9. Participate in the collaborative development of open source projects: Github has now deeply supported Windows developers, and now each is in each of them. GitHub's open source projects have a "Clone in Windows" button in front of GitHub. We can have any open source projects that we are interested in, and then modify them to participate in the development of open source projects. Plops after clicking this button, the browser will ask for opening GitHub for Windows, download the project to the local area, and create a new local warehouse: It is completed through the graphic interface, and it can basically complete daily writing. These main simplifications include: 1. Simplify PUSH to a remote warehouse to a synchronous button 2. It will be submitted to the local warehouse to simplify to add comments on some columns. It also includes the establishment and management of branches. To explore this part by yourself. In short, GitHub for Windows is indeed a very good tool.
Git is a distributed version control system, which was originally written by Linus Torvalds and used as the management of Linux kernel code. After launch, Git has also achieved great success in other projects, especially in the Ruby community. At present, many well -known projects including Rubinius and Merb have used Git. Git can also be used by deployment tools such as Vlad The Deployer. Similarly, the source code of the EOE client is also hosted on Github.
[How to use]
1. Register an account and create a warehouse Of course, the first step of github is registered for Github account. After that, you can create a warehouse (free users can only build a public warehouse), create a new, fill in the name of the name, and then there will be some warehouse configuration information, which is also a simple tutorial of Git.
2. Install the client Msysgit github is the server. To use git on your own computer, we also need a Git client. I choose Msysgit here. This only provides Git's core function And it is based on command lines. If you want the graphic interface, you can just install it on the basis of Msysgit.
MSYSGIT Right -click the mouse to produce more options. Right -click Git Init Here in the local warehouse, and one more .git folder will be produced, which means that the local Git creation is successful. Right -click Git Bash into the Git command line. In order to pass the local warehouse to github, you also need to configure SSH Key.
3. Configure git
First create SSH Key locally; Change to your mailbox, and then ask for the confirmation path and input password. We just use the default one way and return. If you succeed, you will generate a.ssh folder, go in, open ID_RSA.Pub, and copy the key inside.
The back to github, enter account settings, select SSH Keys on the left, fill in SSH Key, Title casually, and stick Key. In order to verify whether it is successful, enter: 1 $ SSH-TGIT@Github If the first time you will prompt whether to continue, enter yes to see: you've, but github does not provide shell Essence This indicates that it has been successfully connected to GitHub.
In the next thing we have to do is to pass the local warehouse to github. Before that, it is necessary to set username and email, because github will record them every time. rn12$gitconfig--globaluser.name""$gitconfig--globaluser.email"@"进入要上传的仓库,右键git bash,添加远程地址:rn1$gitremoteaddorigingit@github:yourName/yourRepo. YourName and YouRepo behind git indicate that you then github's username and the new warehouse just built. After adding it, enter .git, open Config, there will be an additional remote "Origin" content here. This is the remote address that I just added. Modify config to configure the remote address. 4. Submit, upload
In add some files to the local warehouse, such as Readme, 12 $ gitadream $ gitcommit-m "firstCommit": 1 $ gitpushoriginmasterGit Push command will push the local warehouse to the remote server. git pull command is opposite.
In the code is modified, you can view the difference in the file with git status. Use Git ADD to add files to Commit. You can also use git add -i to intelligently add files. Git Commit submitted this modification, and Git Push was uploaded to github.
1. Github is an online custody platform with source code, which provides version control and collaborative working functions.
. Step of github use:
In GitHub, the knowledge base is always used to organize a certain project. The knowledge base can include folders, files, pictures, audio, video, data tables or data sets-any files required by your project.
Step 2. Create a branch
The branches are the same way of distinguishing the version of a knowledge base or project.
The default situation will have a master branch in each knowledge base. This is the main branch of the project, which can be understood as the production environment or formal environment of the project.
Step 3. Modify and submit
The is currently in the Readme-Edits branch, which is a copy of Master. Next, make some modifications.
Mit the modification and submission of the modification and submission of the modification and submission of it. Each Commit requires a commitmessage to illustrate the purpose of this modification. Commit
messages preserve all modified logs so that others can see what modifications this project has made and why these modifications are done.
Step 4. Create a merger request
merging request is the core of GitHub for teamwork. When creating a merger request, what you make is to modify the merger to the merger to the merger to Go in other branches. When the consolidated request, the two branches will be displayed, and it will be identified or deleted by green and red.
Step 5. Merge request
This in this last step is to merge the branch of the branch you modified to the Master branch.
Click the MergePullRequest button.
Click Confirmmerge.
The click Deletebranch button to delete the branches that are no longer needed.
What is GitHub:
Git is a distributed version control system, which was originally written by Linus Torvalds and used as the management of Linux kernel code. After launch, Git has also achieved great success in other projects, especially in the Ruby community. At present, many well -known projects including Rubinius and Merb have used Git. Git can also be used by deployment tools such as Vlad The Deployer.
github tutorial:
1. Download github for windows in the system heaven, and then install it without installation
2. Login, open github after installation, log in with your GitHub account. What you need to pay attention to, github for Windows will help you create SSH Key. You should receive the email to help you create SSH Key information, which also saves a lot of things:
3. Create a warehouse. Click the " ADD" button above to create a new warehouse and enter the relevant information:
. The newly -built warehouse has not been really submitted to the local warehouse, which is equivalent to this is just a new modification. GitHub simplifies some operations. In the process, for any modification, you only need to add a comment to submit it to the local warehouse, and then you can submit to the remote warehouse at this time, so let's add a comment:
after each comments are added, it is equivalent to toward direction. A version of the local warehouse is submitted, and then you can choose a version to submit it to the distant warehouse.
5. At this time, we can publish a warehouse. After the publish, the button becomes in sync text, which means that the future modification and submission will be synchronized. :
6. Add projects, warehouses are stored locally in a folder, github for Windows will monitor this folder, any modification will be seen in the warehouse, and then add a comment as above to submit the modification to the modification to Local warehouse, here we open the warehouse directory and add a project to it:
7. Submit the modification to the local warehouse and return to GitHub for Windows. Go to the local warehouse:
8. Finally, click SYNC to submit the local warehouse to github
9. Participate in the collaborative development of open source projects:
Github has now deeply supported Windows developers, and now each is in each of them. GitHub's open source projects have a "Clone in Windows" button in front of GitHub. We can have any open source projects that we are interested in, and then modify them to participate in the development of open source projects.
Plops after clicking this button, the browser will ask for opening GitHub for Windows, download the project to the local area, and create a new local warehouse:
It is completed through the graphic interface, and it can basically complete daily writing. These main simplifications include:
1. Simplify PUSH to a remote warehouse to a synchronous button
2. It will be submitted to the local warehouse to simplify to add comments on some columns. It also includes the establishment and management of branches. To explore this part by yourself. In short, GitHub for Windows is indeed a very good tool.
Git is a distributed version control system, which was originally written by Linus Torvalds and used as the management of Linux kernel code. After launch, Git has also achieved great success in other projects, especially in the Ruby community. At present, many well -known projects including Rubinius and Merb have used Git. Git can also be used by deployment tools such as Vlad The Deployer. Similarly, the source code of the EOE client is also hosted on Github.
[How to use]
1. Register an account and create a warehouse
Of course, the first step of github is registered for Github account. After that, you can create a warehouse (free users can only build a public warehouse), create a new, fill in the name of the name, and then there will be some warehouse configuration information, which is also a simple tutorial of Git.
2. Install the client Msysgit
github is the server. To use git on your own computer, we also need a Git client. I choose Msysgit here. This only provides Git's core function And it is based on command lines. If you want the graphic interface, you can just install it on the basis of Msysgit.
MSYSGIT Right -click the mouse to produce more options. Right -click Git Init Here in the local warehouse, and one more .git folder will be produced, which means that the local Git creation is successful. Right -click Git Bash into the Git command line. In order to pass the local warehouse to github, you also need to configure SSH Key.
3. Configure git
First create SSH Key locally; Change to your mailbox, and then ask for the confirmation path and input password. We just use the default one way and return. If you succeed, you will generate a.ssh folder, go in, open ID_RSA.Pub, and copy the key inside.
The back to github, enter account settings, select SSH Keys on the left, fill in SSH Key, Title casually, and stick Key. In order to verify whether it is successful, enter:
1 $ SSH-TGIT@Github If the first time you will prompt whether to continue, enter yes to see: you've, but github does not provide shell Essence This indicates that it has been successfully connected to GitHub.
In the next thing we have to do is to pass the local warehouse to github. Before that, it is necessary to set username and email, because github will record them every time. rn12$gitconfig--globaluser.name""$gitconfig--globaluser.email"@"进入要上传的仓库,右键git bash,添加远程地址:rn1$gitremoteaddorigingit@github:yourName/yourRepo. YourName and YouRepo behind git indicate that you then github's username and the new warehouse just built. After adding it, enter .git, open Config, there will be an additional remote "Origin" content here. This is the remote address that I just added. Modify config to configure the remote address.
4. Submit, upload
In add some files to the local warehouse, such as Readme,
12 $ gitadream $ gitcommit-m "firstCommit":
1 $ gitpushoriginmasterGit Push command will push the local warehouse to the remote server.
git pull command is opposite.
In the code is modified, you can view the difference in the file with git status. Use Git ADD to add files to Commit. You can also use git add -i to intelligently add files. Git Commit submitted this modification, and Git Push was uploaded to github.