This homework assumes:
- You have a GitHub account,
- You have the GitHub Desktop app installed, and
- You have Visual Studio Code app installed.
Both were setup during the lecture. Please refer to the lecture notes if you don't have these requirements.
Follow these instructions closely, in the order given.
Partner A:
- Create a fork of this repository into your own account. Your fork is now considered the "remote" repository.
- Add permissions so your partner can also access your repository. Follow these instructions to do so.
Both partners:
Clone the remote repo (partner A's) to your own computers, creating a local copy.
Partner B:
-
Create a new branch.
-
Open up the
unis.pyfile in Visual Studio Code (it should be an empty file). Add the following line to the Python file, containing an empty list calledunis:unis = []
-
Save the file, then commit the file. Use a meaningful message in your commit message.
-
Push the change to the remote repository.
-
Open up a Pull Request to merge your branch into the
mainbranch. -
Locally, switch back to the
mainbranch.
Partner A:
- Review Partner B's Pull Request by looking at the code changed. If it looks correct, merge the PR. Once merged, delete the branch.
- Make sure you're on the
mainbranch before proceeding. - Pull the new changes into your local copy. These are the changes made from Step 3.
- Create a new branch.
- Edit
unis.pyand add your UNI as a string in the list, on the same line. - Save the file, then commit the file. Use a meaningful message to your commit message.
- Push the change to the remote repository.
- Open up a Pull Request to merge your branch into the
mainbranch. - Locally, switch back to the
mainbranch.
Partner B:
- Make sure you're on the
mainbranch before proceeding. Do not review & merge Partner A's pull request from Step 4.7 just yet! - Pull the new changes into your local copy. These are the changes made from Step 3.
- Create a new branch.
- Edit
unis.pyand add your UNI as a string in the list, on the same line. - Save the file, then commit the file. Use a meaningful message to your commit message.
- Push the change to the remote repository.
- Open up a Pull Request to merge your branch into the
mainbranch. - Locally, switch back to the
mainbranch. - Now, review Partner A's Pull Request from Step 4 by looking at the code changed. If it looks correct, merge the PR. Once merged, delete the branch.
- Pull the new changes into your local copy.
- Check out your branch and merge the changes from the
mainbranch into your branch, resolving the merge conflicts as necessary so that both you and your partners' UNIs are in the list. You can read more on what merge conflicts are and how to address them here. - Push your branch to update your pull request.
Partner A:
- Review Partner B's Pull Request by looking at the code changed. If it looks correct, merge the PR. Make sure there are no merge conflicts. Once merged, delete the branch.
Partner A:
- Make sure you're on the
mainbranch before proceeding. - Pull the new changes into your local copy.
- Delete
unis.pyfile. - Commit the changes to your
mainbranch - Push the changes to the
mainbranch.
Both partners:
- Make sure you're on the
mainbranch before proceeding. - Pull the changes into your local copy.
- Repeat Steps 3 through 6 once more, switching Partner A and Partner B.
Note: if you’re a group of 3, repeat this entire process, Steps 1 through 8 (although skip Step 1.1), with a new partner grouping.
Once done, copy the HTTPS URL of Partner A's GitHub repo, and submit it in Courseworks for the assignment. Graders will be reviewing the commit & pull request history according to the rubric.