-
Create a new repository.
-
Clone the repository.
git clone git@github.com:satomacoto/PostTube.git
-
Create a
gh-pages
branch.git branch gh-pages
-
Create a hook.
vim .git/hooks/post-commit chmod 755 .git/hooks/post-coemmit cat .git/hooks/post-commit #!/bin/sh git checkout gh-pages git rebase master git checkout master
-
Push all.
echo 'Hello world' > index.html git add index.html git commit -m 'add index.html' git push --all