Skip to content

Instantly share code, notes, and snippets.

@tenapril
Last active April 2, 2020 09:17
Show Gist options
  • Save tenapril/440c579bd6303cc72ead88ad24a7a397 to your computer and use it in GitHub Desktop.
Save tenapril/440c579bd6303cc72ead88ad24a7a397 to your computer and use it in GitHub Desktop.
Create your own Github Page Guide - 20200403
git clone https://github.com/scttcper/gatsby-casper.git --depth=1
rename folder to your githubname.github.io
cd to folder
rm -rf .git && git init
create a repo in your github with the name githubname.github.io
git add .
git commit -m "first commit"
git remote add origin git@github.com:github-page-yeay/github-page-yeay.github.io.git
git push -u origin master
------
add "deploy": "rm -rf .cache && gatsby build && gh-pages -d public -b master" to package.json under "scripts"
npm install gh-pages --save-dev
make develop branch out of master from github website
npm run deploy
if error, remove .cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment