-
find [instructor] on github.com and find the
Mr_Potato_Head
repository: -
Fork the Repo
In Cloud 9:
- Create a new workspace for this repository using the clone from Git URL from your repository.
- Add your assigned body part to
potatohead.html
. Body parts can be found in theassets
folder - Add the necessary CSS to your body part in the
potato.css
file. - Once you are complete with the html, do the following steps:
In Cloud 9 terminal:
git status
You should see that potatohead.html and potato.css are modified, like this:
modified: potatohead.html
modified: potato.css
Stage your changes in the index with git add .
, then commit them. The string after -m
in git commit
is the commit message. Don't use "Commit message" as your message!
Instead, say what you did, for example "added body part [your assigned body part]"
git add .
git commit -m "Commit message" <<< but change the message!
Push your local commit up to github
git push origin master
look at your github: You should see the commit you just made! If you click "Commits" you can see the all of the work that has been put into Mr Potato Head, and you are at the top!
From your GitHub create a "New Pull Request" (the green button) to send your changes to the instructor. The instructor will merge all of the changes (everyone's body parts), and at the end hopefully we'll have a whole Mr. Potato Head.
- Try to create a button the sits below Mr. Potato Head that when it is clicked your body part will show or hide.