Fork & Clone
- Hit 'Fork' on this repo
- On your Fork (it will say
<your-github-username>/hello-github
), click the green 'Code' button and copy the SSH option - Clone down your fork using
git clone <what you copied>
in your terminal
Make a Change
- Move into the project folder with
cd hello-github
- Open it up in VS Code using
code .
- Make a change! Add your name to
<your-cohort>/roster.txt
and save the file (Windows/Linux: ctrl+s / MacOS: command+s) - Check the git status of the project with
git status
-<your-cohort>/roster.txt
should show in red as there are unstaged changes
Stage your Change
- Stage your change with
git add .
(orgit add <your-cohort>/roster.txt
) - Check the status again -
<your-cohort>/roster.txt
should now show in green as the changes have been staged but not yet committed
Commit your Change
- Commit your change with
git commit -m "add <your-name>"
. The-m
is a flag for 'message' and you must leave a message with every commit! - Check the status again - there should be nothing to commit now but an indicator that your local version is one commit ahead of the origin. As it suggests, use
git push
to push up your work to GitHub!
Make your first PR
- You made your own fork of this, now use the GitHub browser interface to see if you can make a Pull Request back to
getfutureproof/hello-github
. Try and request review from @futureproof-admin. We will merge your PR when we receive it!