Skip to content

UOL-CS/gitruler-d-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

GitRuler Section D

This repository is section C of the GitRuler exercises. If you do not already have a your own repository for these exercises fork this repository.

In this exercise we will learn about tagging and viewing differences between commits and files within the repository history

Tagging commits

  1. Run GitRuler to initialise the exercise.
  2. Tag HEAD, the current commit, with the name "first-tag".

Viewing at the git history log

  1. Look at the git history log to find the commit with the message "Add initial product file".
  2. Check out that commit
  3. Tag that commit with the name "second-tag".
  4. Check out the latest commit on the master branch.

Comparing commits

  1. Look at the git history log for the file files/products.txt.
  2. Compare each commit in that log to the previous one to find the commit that added the line "Edam".
  3. Check out that commit.
  4. Tag it with the name "edam-tag"

Submitting the results

Once the exercise is complete, push this repository to the remote. If there are tags or multiple branches for an exercise, make sure that you push them all.

To ensure that you have you correctly pushed everything that you need to, you could clone the remote repository into a separate folder and re-run gitruler.

Resources

The following are example of the many free resources that will explain how to perform the actions required for this exercise.

  1. Tagging versions https://githowto.com/tagging_versions.
  2. Viewing the git history log https://githowto.com/history
  3. Checking out a commit or the latest commit on master https://github.com/francopestilli/life/wiki/Switch-to-a-previous-state-of-the-repository
  4. Viewing the changes to a file made by a commit: It's easy to Google for this. You will need to learn to use the diff command.
  5. You may need to research a little on how to understand the output of a git diff command. Example resources are here and here or Google specifically for what you need to know.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published