Tip
Need any help with git? Feel free to reach out on #git-support
This is a template repo that, as a trainee, you can copy to your own github and then submit your weekly assignments to.
If this is your first time using this repo, follow these steps:
-
Scroll to the top of this repo, and click "Use this template":
-
Follow the instructions to create a new repository under your own account, as shown below:
-
After the repo has been created, clone it locally as you would with any repo (see "Cloning a respository" for help):
Tip
Before we get into the instructions, remember that GIT has a steep learning curve, and if you get stuck, refer back to your previous GIT sessions for a refresher or reach out for help on slack.
Here's some general tips to keep in mind:
- Before creating a new assignment branch, always start from
main
. - Keep your local
main
up to date with the remotemain
, especially after any merges. - Write meaningful commit messages, to make it easier to follow your progress and review.
- Open your local assignment repo and check which branch you are on.
- If you're on another assignment branch, make sure any unsaved changes are committed (or discarded), and then move to
main
. - If you're already on
main
, you're ready for the next step! - Create a new assignment branch with the following naming scheme
module-name-weeknumber/yourname
Now you're ready to complete your assignment. Remember to commit often, with useful messages.
-
When you're ready to submit, make sure you're in your local repo and on the correct branch.
-
Push to your remote and create a PR on GitHub by Wednesday end of day (unless otherwise agreed).
-
Find the "Assignment Submission" Google Sheet (bookmarked in your team's slack channel) and follow the instructions there. It will look something like this:
If you're an Assignment Reviewer, follow these steps each week:
- Find the "Assignment Submission" Google Sheet (bookmarked in the team's slack channel)
- Look through the relevant week/module and choose a red PR to review
- Once you've left your initial feedback, set it to yellow.
Tip
You should default to use the "Request changes" option when reviewing a PR. It should be clear to the trainee when they need to change something. Once you are happy with the changes, then use "Approve".
If you are not requesting any specific changes, it's ok to leave comments, but be sure to approve the PR as well so we don't leave anyone hanging.
- Once any discussion/changes have been completed, it's up to the trainee to merge the PR and set it to green.