Lab#1

docx

School

Centennial College *

*We aren’t endorsed by this school

Course

216

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by MajorRiverOkapi25

Report
DevOps Implementation COMP367 Lab#1 – Git & GitHub Due Date: Midnight of Week#4 Friday (Feb 2, 2024) Purpose: The purpose of this lab is to help you: Understand version control Become familiar with Git’s most commonly used commands Become familiar with GitHub repository, Issues, GitHub flow, branch, pull request, etc Instructions : Be sure to read the following general instructions carefully: 1. This lab should be completed individually by all students. Submit your solution through the dropbox , name your submission as studentID(yourlastname)_Labnumber.zip . e.g., 300123456( smith)_Lab#1 .zip Rubric Question Marks 1. Configure Git and GitHub 4*0.5 2. Practice Git commands 8*0.5 3. Create repository 2 4. GitHub issues 6*0.5 5. GitHub pull request 6*0.5 6. Your experience using Git & GitHub 1 Question 1[2 marks] Finish following requirements. Please note that you are asked to use git bash 1) Follow link to setup your username for every repository on your machine as your first name and last name e.g. John Smith 2) Follow link to setup email for every repository on your machine, please make sure to use your my.centennialcollege.ca email address 3) Sign up with GitHub using your my.centennialcollege.ca email 4) Create a GitHub PAT(Personal Access Token) and keep it safe somewhere because it will be required in future labs After you finish the above steps, please provide screenshots. Question 2 [4 marks] Practice most commonly used git commands on a local git repository by using git bash 1) Create a local git repository on your machine named comp367(yourlastname)-lab1(e.g., comp367Li-lab1) 2) Create a file README.md and add your name and email address as the contents 3) Add README.md file to your repository with “my first commit” as commit message 4) Add a new file name TBD.md and add your name and email address as the contents 5) Add TBD.md file to your git repository with “my second commit” as commit message Lab #1 Page 1 of 2
DevOps Implementation COMP367 6) Remove the commit made in 5) from the repository 7) Delete TBD.md file from working area 8) Commit the change to the repository with “removed TBD.md file” as commit message I nclude the screenshot of the output of git log command in your submission Question 3 [2 marks] Implement a web app by finishing the tutorial at https://docs.microsoft.com/en-us/visualstudio/get-started/csharp/tutorial-aspnet-core?view=vs-2022 . Create a Git repository and push it to GitHub. Please make sure to use public repo so that your professor can access it . Include the URL of your repo on github.com in your submission Question 4 [3 marks] This question is to continue Question 3 by modifying the project so that “Hello Your name” will be displayed rather than “Hello world”. Please finish following steps: 1) Create a new issue with proper title and add label to this issue 2) Create a branch with proper name 3) Change the code 4) Create .gitignore file and ignore the obj directory and Properties directory 5) Commit your changes with a proper message 6) Push to GitHub Include screenshot of the output of git log command, URL of your GitHub issue, and .gitignore file Question 5 [3 marks] This question is to continue Question 4 by merging the branch created in Question 4 by finishing following steps: 1) Create a pull request with proper description 2) Add a reviewer for the pull request 3) The reviewer adds some comments (e.g., some change suggestions) 4) After the suggested change has been made, the reviewer approves the pull request 5) Merge the branch to the main/master branch 6) Make sure that the associated issue is automatically closed upon merging Include screenshot of the output of git log command, URL of the pull request, and URL of the issue Question 6 [1 mark] How long have you used Git and GitHub? What was the main purpose for you to use Git and GitHub? Lab #1 Page 2 of 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help