As these are achievements focused on “how” we work with code instead of “what” we do with code, you can use situations from other assignments that relate to the respective achievement options.
Review from Yesterday
Merge Conflict: when someone tries to push code that changes something that has already been changed in remote without pulling first
Branches: alternate versions of a code base
Pull Request: when you move code from one branch to another
Questions and Examples
Walk through code used from yesterday
Address any issues regarding branching or merging conflicts
Each team opens up a feature branch and edit text in a specific file (each team uses their own file)
pass 4 commits back and forth (resolve any conflicts that occur)
When you’ve finished your 4 commits, one of you opens a PR to merge into main, the other Has to add a +1 in the PR comment section before merging down (failure to do this will mean that you don’t get a point)
Merge the code to main and gain a point
the other team must pull your changes from main into their feature branch before continuing
Goal
Merge the most number of PRs with at least 4 commits each
Special Guest: Jessica Watson (SAIT Web Dev Graduate)