Chapter II Assignments (Yucen Center)

Source: Internet
Author: User

Requirements 1. Referring to Http://www.cnblogs.com/xinz/p/3803109.html's first question, each person builds a GitHub account, the team leader builds a project, Include this group of members in the collaborators in this porject and add [email protected] to collaborator.

1. First enter the URL: https://github.com/, go to the following page

2. Click Sigh up in the upper right corner to register an account

3. After filling in your username, email address and password, click on the green creat an account below to create a second step

4. Choose a personal plan, that is, free or paid users, respectively, corresponding to different permissions, here I choose the free user, (because the creation of the name is already occupied, so in order to re-create an account). Then click on the Green continue to enter the third step.

5. The third step is to understand the previous experience, here I follow the selection, and then click on the submission below the submit, the successful application to an account.

6. Click Start a on the right to create a new project

7. Enter repository name, select Public, select Initialize, and click Creat Repository. Enter the following interface

8. Click on the setting on the right side of the menu above, then click Collaborators in the menu on the left, go to the Invite screen, then enter the user name or mailbox of the team member and chapter teacher, find and click Add collaborators, they will receive the mail, After the agreement, I joined in.

Requirements 2. Build a HelloWorld project for each person and practice basic commands such as Git add/commit/push/pull/fetch/clone. Compare the differences between the old and new versions of the project.

1. First download git and then create the SSH key locally, as

2. That is, enter your email address in git bash and confirm the path and password. After success we will see that a. ssh file is generated later, and then we enter this file, open id.rsa.pub, copy the key inside, and complete the configuration. As shown in the following:

3. Open the browser, enter the URL: www.github.com, then enter your own account password, enter. Then click on the setting on the right, as

4. Select SSH and GPG keys from the menu on the left and select SSH keys above for new SSH KEY

5. Start with a name fancy998, and then paste the password you just generated

6. After receiving the confirmation email, confirm it and complete it. As shown in the following:

7. Create a repository with "Git init",

8, we create a new Hello World.txt file, and then use the command git status to view the status of the current workspace, you can see

9. This indicates that the TXT file has not been tracked by git and prompts you to add the file to staging area. We can enter "git Add.", continue to use "git status" to view the status of the workspace, you can find that the file was added to the staging area

10. Then we can submit the update via the "Git commit-m" command. After entering this command, you will be asked to re-enter your username and mailbox, as GitHub will be re-recorded each time it commits. As shown in the following:

11. If we now update the "Hello world.txt" file and then look at the status of the workspace, we will find that the update is not in staging area, but only in the workspace

12. Notice that the file has become red, and the left side shows modified, which is modified. Then we can use the same git add as above. And the "Git commit-m" command

13. Only the updates that are added to staging area will be submitted to the local library, and if there are changes to the workspace before submission, you cannot add the staging area, only the staging area updates are submitted, and the parts of the workspace modifications are not submitted to the local library.

Requirements 3. Complete the requirements document for the team's "Arithmetic" project (using Markdown to write the document), and try to use the git command to complete the update of the document on GitHub without conflict after trying to modify the same document on their own PC with the group members. and verify that the documentation on GitHub is really up-to-date.

1. Write the project requirements document using Makedown as follows

Update no longer repeat.

Chapter II Assignments (Yucen Center)

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.