Create new repo with the name <username>/github.io
and add it as origin.
Create a new branch and push it to github:
git checkout -b development
git push origin development
Fetch gh-pages branch from github
git fetch --all
git checkout gh-pages
Delete old master locally and remote and create it from gh-pages
git branch -d master
git push --delete origin master
git checkout -b master
git push origin master
Now your website should be accessible from
Change your default branch in github settings to development
Now all your development should me done in the development branch
npm run deploy
git fetch --all
git merge gh-pages master
git push origin master