Lab 01 Version Control PDF
Lab 01 Version Control PDF
Lab Exercise
uOttawa.ca
Exercise: Coordinating Access
• Students are to form groups of 4.
• Part 1
– Use the following link to join our GitHub classroom.
https://classroom.github.com/g/pp663HZs
– One of the members of the team creates the team, the other (3)
members join it.
Exercise: Coordinating Access
• Part 1 (2)
– The members of the group will then clone the repository to their local
machines and create a text file with their first name. e.g.:
"miguelgarzon.txt"
– Each student must then commit and push their changes to the
repository
• Remember to pull changes from the repository before pushing your
commit.
– At the end of Part 1, the remote repository should have 4 files, each
with the name of a team member. There shouldn’t be any conflicts in the
repository at this point.
Exercise: Resolving Conflicts
• Part 2
– Each member of the group will attempt to modify the same file.
– Each student must create a file named “team.txt” and write their first
name in this file. At the end of the exercise, "team.txt" contains the
names of the 4 students.
– Each student must commit and attempt to push their file.
• 3 students won't be able to push without resolving conflict. After
pulling remote changes, you will get a “conflict warning”. Look into
the file and you will see that the changes to the file proposed by the
local and remote commits. Fix the file and add it to the staging area.
• Push your changes (see slide 6 for example of file with conflict)