19/01/2019 22:59 • ☕️ 1 min read
So, what do you need to do first?
Settings tab of the project:
In Settings you will find block GitHub Pages there you can choose what branch is the branch you will use to deploy to you hosting site.
index.hml file.You can use any branch as deployment branch, but widely addopted way is to use orphan branch called gh-pages
How to create gh-pages orphan branch?
$ git checkout master
$ git ls-files
$ git checkout --orphan gh-pages
$ git rm -rf .
$ echo "# My orphan ReadMe" > ReadMe.md
$ git add ReadMe.md
$ git commit -a -m "Initial commit"
$ git status
$ git log --oneline --graph
$ git checkout master
$ git log --oneline --graph
$ git push