- Create a front-end project & name index.html
- cd into the project in terminal
- Run
git init
to initialize the git repo in the project - Create & switch to branch called gh-pages -
git checkout -b gh-pages
- Go to github.com the website and create a new repo
- Do not add a readme..
- Use the cheatsheat to add the remote -
git add remote....
- Run
git add .
to add & stage all your files - Run
git commit - m "initial commit"
- to commit w/ a message of your choice - Run
git push origin gh-pages
- to push everything you just commited to the branch gh-pages - Check out your new fancy webpage in the browser at http://username.github.io/repository
Last active
September 15, 2015 01:07
-
-
Save alysonla/37194be32e7c90cff0ff to your computer and use it in GitHub Desktop.
GH Pages Cheatsheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!