In this module you'll submit your homework 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 homework:
ONE TIME ONLY (START OF EVERY MODULE)
- Create a fork of the following repository: HackYourHomework/JavaScript2. You do this by using the
fork
option on the top right - Navigate to the URL of the forked repository (it should be in your personal GitHub account, under "repositories", under the name
<YOUR_GITHUB_ACCOUNTNAME>/JavaScript2
) - 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
andgit remote -v
from the command line
EVERY WEEK
- Create a new branch for each week you have homework. For example, for the week 1 homework for JavaScript2 create a branch called
week-1-homework-YOUR_NAME
- Inside the week folder, create another folder called
homework
. Create your homework files in there, while on the correct branch - Once you're finished,
add
andcommit
everything. Make the commit message meaningful, for examplefinished project for homework week1
- Push the branch to your forked repository (
<YOUR_GITHUB_ACCOUNTNAME>/JavaScript2
) - On the GitHub page of this repository, click on the
create pull request
button. Make sure thebase repository
isHackYourHomework/JavaScript2
, on branch master - Give the pull request a title in the following format:
Homework week 1 <Your name>
- Submit the pull request from your forked repository branch into the
master
branch of the original repository (HackYourHomework/JavaScript2
) - Do a little victory dance because you did it! Good job!
If you have any questions or if something is not entirely clear ¯\_(ツ)_/¯, please ask/comment on Slack!