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 branching and merging.
- Run GitRuler to initialise the exercise.
- Create a new branch in this repository called
new-location-1
frommaster
. - In the
new-location-1
branch add "Sunny Rosario" to a new line infiles/employees.txt
. Commit that change with the message "Add employee Sunny" - Switch back to the
master
branch add a new file calledfiles/products.txt
containing "Bananas". Commit this file with the message "Add products file". - Merge all changes from the
master
branch into thenew-location-1
branch. - Merge all changes from the
new-location-1
branch into themaster
branch.
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.
- Creating branches: https://githowto.com/creating_a_branch.
- Switching between branches: https://githowto.com/navigating_branches.
- Merging changes from one branch to another: https://githowto.com/merging.