Skip to content

Latest commit

 

History

History
164 lines (95 loc) · 4.21 KB

File metadata and controls

164 lines (95 loc) · 4.21 KB

Learning Objectives

By completing this assignment, learners will demonstrate that they can:

  1. Explain what Git and GitHub are.

  2. Create repositories locally and remotely.

  3. Track file changes and view history.

  4. Stage and commit changes.

  5. Understand repository status.

  6. Push changes to GitHub.

  7. Write meaningful commit messages.

  8. Navigate the basic Git workflow.


Local Repository Creation (20 points)

Requirements:

  • Create a folder on your desktop named GitBeginner_userName but replace the `userName` with your GitHub username.

  • Initialize the repository from the command line.

  • Once initialized, verify the status of the repository from the command line.

  • Take screenshot(s) of the commands used to initialize the repository and to verify its creation.


Build Your Local Repository (20 points)

To build your repository follow these steps:

Step 1:

  • Create a file named README.txt.

  • In this file, include the assignment title, your name, the course name, date, and a brief description of the repository.

  • Add this file to the staging area.

  • Commit your changes with an appropriate commit message.

Step 2:

  • Create a file named KnowledgeCheck.txt.

  • In this file, complete the questions found at the bottom of this assignment and number each question accordingly at the beginning of the line of text.

  • Add this file to the staging area.

  • Commit this file with an appropriate commit message.

Step 3:

  • Create a file named Reflection.txt.

  • In this file, include any questions or comments that you have about the material we have covered thus far. Be sure to include anything that you believe was not covered well enough or that you struggled to understand.

  • Add this file to the staging area.

  • Commit this file with an appropriate commit message.

Step 4:

  • Check the history of this repository and identify the commits that you have made.

  • Take a screenshot of the repository history and the commits that you have made.

  • Check the status of the repository to make sure there are not any folders/files that you have failed to commit.

  • Screenshot the status of the repository.

Step 5:

  • Create a folder named Screenshots.

  • Place all screenshots required for this assignment into this folder.

  • Add this folder and its contents to the staging area.

  • Commit this folder and its contents with an appropriate commit message.


Remote Repository Creation (15 points)

Requirements:

  • Create a new remote repository on GitHub.

  • Name the repository GitBeginner_userName but replace the `userName` with your GitHub username.

  • Change the description to "This is my assignment submission repository."

  • Make the repository public and leave all other options as "no" or "off".


Connecting Your Repositories and Pushing Changes (20 points)

Requirements:

  • Using the existing repository option on GitHub, use the command line to link your remote repository to the local repository and push your commits to the remote repository.

  • Screenshot the commands used to connect the repositories and the output thereafter.

  • Verify the linkage between the two repositories using the command line.

  • Screenshot the commands and output used.

  • Add these screenshots to the "Screenshots" folder in your local repository, add the changes to the staging area, commit these changes with an appropriate commit message, and push the changes to your remote repository.


Knowledge Check (25 points)

Answer in complete sentences, in your own words, and label each question with its number:

  1. What is version control?

  2. What is Git and GitHub, and what are the differences between them?

  3. What is a repository?

  4. What is the difference between adding changes to the staging area vs committing them?

  5. Why are commit messages important?

  6. What does git status tell you?