Guidance for the item(s) below:
By the end of this tutorial, we want to confirm that you are able to apply Git and GitHub techniques you learned so far to follow a systematic workflow when updating the code.
In this activity you will be using the forking workflow to do some simple updates to the code base while working in parallel. The objective is to ensure you know how to follow the expected working in the tP. The steps are given below:
First, ensure that you know how the forking workflow works.
Next, add the upstream
as a remote: The forking workflow requires you to pull from the team repo and push to your own fork. To be able to do the former, you need to add the team repo as a remote of your clone. Follow the instructions in the panel below to add a new remote with the Remote name upstream
(can be anything, but upstream
is a common choice) and URL / Path pointing to the team repo
e.g., https://github.com/AY2122S1-CS2113-T09-2/tp.git
(note the .git
at the end)
Now, follow these steps to update the code using the forking workflow e.g., each person can add their details to the docs/AboutUs.md
page:
johnDoe-AboutUs
) in their local repo.master
branch of the team repo. Follow up notes for the item(s) above:
The workflow you followed above is very safe but has a high-overhead. You may simplify your workflow (at your own risk) after following the above workflow for a while.