This repository is section B 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 tracking new files and creating commits with that contain selected changes.
- Run GitRuler to initialise the exercise.
- Create a new file within in the
files
directory calledcustomers.txt
containing the text "El Rancho Burger". - Stage and commit this new file with the commit message "Add El Rancho".
- Add another customer to this file called "Zorba's Palace" and commit that with the message "Add Zorba".
The files/products
folder contains some files that describe products. Some of these are already tracked by git when you cloned the repository. Some files were added and others were edited when you ran gitruler.jar. These tasks are about committing the right changes in the right commits.
- Use the git status command to identify which of the files from
files/products
are currently untracked and which are tracked but modified. - Stage and commit the product files that are untracked with the commit message "Add new products".
- Stage and commit the product files that are tracked but modified with the commit message "Update products".
Once the exercise is complete, push this repository to the remote. If there are 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.