Open soda4fries opened 4 months ago
For lab submissions, we follow a peer review process. Everyone in the occ 9 has the opportunity to review and approve someone's submissions. Here’s how it works:
Ensure that you are working on the correct branch for your lab submission. If not, create a new branch:
cd Labs/<your_matric_number>
git checkout -b <new_branch_name>
Important Reminder: Always ensure you are working within your own designated directory.
Commit and push your changes to the branch:
git add .
git commit -m "Lab X submission - Name"
git push origin <branch_name>
Go to the GitHub repository page, navigate to "Pull requests" > "New pull request".
Select your branch for the lab submission and create a new pull request. Make sure to provide a descriptive title and description of your lab work.
Everyone in OCC 9 can review each other lab submission.
For lab submissions, we adopt a more flexible approach where any group member can merge the pull request once it has received sufficient approvals (e.g. a approvals from different members).
Git Tutorial for OCC 9 Group Project
This tutorial is for OCC 9 group project.
Cloning a Repository
Cloning a repo, here's how you can do it:
Run the following command:
Working Within Your Group's Subdirectory
Each group have their own subdirectory. Go to "Group Projects" and find your group name and ensure all your work is contained within your group's respectitive area.
Create a Git Branch
In Git, a branch is a new/separate version of the main repository.
Before starting your work, create a new branch to isolate your changes:
Create and switch to a new branch named after your feature or task:
eg:
checkout
: This command is used to switch between branches.-b
: This flag is used to create a new branch.If you want to go back to master branch:
Add Your Code Inside Branch
Always remember to submit change on your group's subdirectory only. So switch to a branch first
Once you want to submit a change, stage your changes with:
.
: The dot represent the current and all of its subdirectories So by using 'git add .' Git will add all changes in the current directory and its subdirectories to the staging area.Submit for Review
After pushing your changes, create a pull request for your branch on GitHub:
For Team Leader