- Get a GitHub account: https://github.com/
- Github > Dashboard > New Repository ... https://github.com/repositories/new
- Enter a Project Name and Description; click "Create Repository"
- On the project page ignore the suggested setup instructions... instead click on the "Admin" button
- Check the "GitHub Pages" checkbox... You'll get a popup.
- Click the "Automatic GitHub page Generator" button.
- Choose a funky colour... or go safe with just white... then click "Create Page" button
- Your project now has only 1 branch "gh-pages" - there is no "master" branch (which is good in our case).
- Copy the "Your page has been created at" url; then click in the "click here to add a homepage" area and paste in the url. Also open your GitHub Pages page in a new browser tab/window to see the page that was auto-generated.
- Copy the SSH read+write GIT url e.g. [email protected]:yourname/projectname.git ... you'll need this in a minute for setting up Cloud9
- Get a Cloud9 IDE account: http://c9.io (sign up with same "username" as your github account. Then instant sign in with github!)
- In the Cloud9 Dashboard paste in your Git SSH url into the "Paste your GIT URL here" then click the "Start editing" button (the first time you do this you will have to jump through some hoops so GitHub can talk to Cloud9 via SSH).
- The Cloud9 IDE should open... double click on index.html file and make some edits. You can view these changes by clicking on the "preview" button in Cloud9 IDE.
- In the Cloud9 IDE console type
git add .
thengit commit -m "first commit"
thengit push origin gh-pages
Go back to your GitHub Pages page and see the update you've made!
Now in Clound9 IDE add a README.md
file; enter some text e.g. the Github Pages url; you may want to also delete the auto-generated index.html
file now... then add, commit, push.
Start hacking away. You're page is hosted for free on Github Pages; and you can access Cloud9 IDE from anywhere to make updates!
WIN!
^_^
I don't see where it says "admin" once I create the repo..