Git GitHub Pages利用方法

リモートリポジトリ作成

https://github.com/office-yone/office-yone.github.io.git
末尾がgithub.io

リモートリポジトリと同期

git clone https://github.com/office-yone/office-yone.github.io.git targetdir

html作成

cd targetdir
echo “hello world” > index.html

ステージにアップロード、コミット

git add index.html
git commit -m “index.html”

リモートリポジトリにアップロード

リモートリポジトリをブックマーク登録
git remote add origin https://office-yone@github.com/office-yone/office-yone.github.io.git

プッシュ
git push origin master

htmlをブラウザで表示

http://office-yone.github.io/index.html