The goal of this exercise is for you to get your feet wet with git commands and the Github interface.
Here are your instructions:
- Find and click the 'Fork' button under the navbar (this gives you a copy of the repo under your Github user account)
- Find and click the 'Clone or Download' button
- Copy the link or click the Clipboard button on the right
- In terminal, navigate to the Desktop
- Run
git clone <pasted url>
- cd into the cloned repository
- Open it in Atom
Here are a couple of challenges to get you familiar with a local git flow and with pushing code to Github.
- In atom, open the file called
OddOrEven.js
- Follow the instructions included to update the file
- Run
git status
to view the status of the repo - Run
git add .
- Run
git status
to view the status of the repo - Run
git commit -m "updated oddOrEven.js"
- Run
git log
to view your commits - Run
git push origin master
- Add a file to the repository folder called
hello-github.js
- Write some code in the file to console.log a message of your choice
- Run
git status
to view the status of the repo - Run
git add .
- Run
git status
to view the status of the repo - Run
git commit -m "added a file"
- Run
git log
to view your commits - Run
git push origin master