In this module you'll submit your assignments only using GIT and GitHub.
Watch the video (by clicking the image) or go through the following walk-through to learn how to submit your assignments:
ONE TIME ONLY (START OF EVERY MODULE)
- Create a fork of the assignments module repository. For Node.js, the assignments module repository is
https://www.github.com/HackYourAssignment/Node.js-cohortXX
where XX is your class number. You do this by using thefork
option on the top right - Navigate to the URL of the cloned repository (it should be in your personal GitHub account, under "repositories")
- Clone the repository, using SSH, to your local machine. You can do this by typing in
git clone <git url>
in the command line - On your local machine, navigate to the folder using the command line
- Make sure you've cloned it correctly by running
git status
from the command line.
EVERY WEEK
- Do a
git pull
on your main branch to get the latest version. - Create a new branch for each week you have assignments. For example, for the week 1 assignments for Node create a branch called
YOUR_NAME-w1-Node
. Don't forget to checkout this branch after creating it. - Make your assignments!
- Once you're finished, add your assignments to a commit. Make sure you only commit your assignments files and nothing else. You can use
git add -p
if you only want to add a couple files. You can always check what is happening with thegit status
command (as one of our mentors always says, it is the console.log of git!). - Create the commit (
git commit
). Make the commit message meaningful, for examplefinished project for assignments week1
. - Push the branch to your forked repository
- On the GitHub page of your forked repository, click on the
create pull request
button. Make sure thebase repository
is your teacher's repository, on branch master - Give the pull request a title in the following format:
Assignments week 1 <Your name>
- Submit the pull request from your forked repository branch into the
main
branch
If you have any questions or if something is not entirely clear ¯\_(ツ)_/¯, please ask/comment on Slack!