Housekeeping
- CPNT 201 Assignment 1 marks returned.
- Announced: CPNT 201 Assignment 2
- Weight: 20%
- Due: Friday January 26 @ 11:59pm
Daily Standup
In the same groups as last class
Each person takes a turn to answer the following questions:
- What did you do yesterday?
- What will you do today?
- Anything blocking your progress?
Activity: Commit Catch and Markdown Review
Materials
Instructions
In pairs, or groups of three:
- Set up a shared repo with your partner(s) according to the instructions in Commit Catch.
- Think of a job, game, sport, task, something that you share with your partner.
- Pick a partner to create a new
README.md
document; - Add a level one heading with a title of your document:
- An h1 heading
# Name of activity
- An h1 heading
- Add, commit and push your changes and switch roles;
- Have the other partner pull the changes just added and repeat Steps 4 and 5 by adding at one of the following:
- A very short description of the activity (just write)
- An h2 heading
## Task List
- A list of steps involved in your task or your task’s responsibilities (ordered with numbers or unordered with dashes)
- Include a link to a website that relates to your activity in some way
[text that is seen](https://pathtosite.org)
- Continue until your document contains satisfies the requirements for Today’s Achievement.
Merge Conflicts
Activity: Creating a Merge Conflict
Using the same partner(s) and repo from the earlier activity, create a merge conflict.
Instructions
With a clean working tree and up-to-date local repos:
- Have both/all partners make a change to the same line of code;
- Have one partner add, commit and push their changes;
- Have the second partner try to add, commit and push their changes;
- Resolve the resulting merge conflict by following the instructions in this activity.
Terminology
- Merge
- When two branches in Git are merged into one. This will often happen if two developers are submitted code to a project or one developer is submitting code from two machines.
- Merge conflict
- When two branches edit the same line of code. Git doesn't know which change to keep so it leaves it to the developer to decide when remote code is pulled.
- Current Change
- The change (relevant to the conflict) that was made on the local repo.
- Incoming Change
- The change that is incoming from the remote repo.
Today's Achievement
Commit Catch
Submit the repo that you created with your partner(s) to Brightspace.
As a comment in your submission, include:
- A link to your GitHub repo (which should include your partner(s) as collaborators).
- The classmate(s) you created the document with.
Marking Criteria
- Your document should include at least one of the following in valid markdown syntax:
- Level 1 heading
- Level 2 heading
- Paragraph
- Bold text
- Italicized text
- A numbered list OR a bulleted list
- A link to an external website
- There should be at least two commits from EACH team member in your Git history.