PRACTICE: Homework Git

Due: Friday, October 27, 11:59pm

NOTE: This assignments is credit / no credit, and therefore resubmission are not accepted.

In this assignment you will get some practice using Gitlab, including retrieving a repository, editing a page in a repository, and pushing to the central database. In addition, this assignment allows you to review some of the material we have learned to date in CSE 374.

Background and helpful information

Requirement Specifications

In order to complete this assignment, please follow these steps:
  1. Find your gitlab account. Set up your ssh key.
  2. clone the cse374-materials git. git clone git@gitlab.cs.washington.edu:mh75/cse374-materials.git
  3. Look at all the sample code!
  4. Clone your own personal repository using the command line interface: git clone git@gitlab.cs.washington.edu:cse374-23au-students/cse374-23au-youruserid.git
  5. cd cse374-23au-youruserid
  6. Consider setting up some git config:
    git config --global user.name "Your Name"
    git config --global user.email yourEmail@uw.edu
    Change your default commit message editor: git config --global core.editor emacs
    See all your configurations: git config --list
  7. Edit the Readme in your repository. Consider adding useful tips about CSE374 or Git.
  8. Add at least one file to your repository. One idea is to copy your previous HW files here.
  9. Follow the procedure to add these changes to your next commit.
  10. Check your git status: git status
  11. Use git add, git rm, etc. to fix any issues with your status.
  12. Commit your changes: git commit -m 'HWGit commit'
  13. Push: git push
  14. You should be able to see these changes via the gitlab webpage at this point
  15. Take a look at your previous commits, and direct the output to a file:
    • git blame README.md >> HWGitRecord
    • git log -1 >> HWGitRecord
    • Add HWGitRecord to your repository. Commit this, and push to origin.
  16. Turn this in via Gradescope; see below

Assessment

The purpose of these assignments is to give you practice using Git. You will recieve credit for any submission that demonstrates that you have been able to push changes to the Readme and a new file to your repository. This assignment is worth 10 points.

Turning In

In order to submit this assignment you will submit to a Gradescope assignment. After hitting the Upload Submission button, please choose the Gitlab option. Then choose your personal repository and upload from there. You will be asked to allow Gradescope access to your Gitlab account; please allow this.