Skip to content

Instantly share code, notes, and snippets.

@niqdev
Created March 24, 2016 17:47
Show Gist options
  • Save niqdev/eda76f85fcddf908e963 to your computer and use it in GitHub Desktop.
Save niqdev/eda76f85fcddf908e963 to your computer and use it in GitHub Desktop.
setup github.io
git clone https://github.com/openwebnet/openwebnet-site.git
cd openwebnet-site/
mkdir dist
cd dist
echo "Hello World" > index.html
echo "openwebnet.xyz" > CNAME
cat index.html
cat CNAME
cd ..
git add .
git commit -m "initial dist subtree commit"
git st
git push -u origin master
git subtree push --prefix dist origin gh-pages
# config namecheap
https://www.namecheap.com/support/knowledgebase/article.aspx/9645/2208/how-do-i-link-my-domain-to-github-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment