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

Follow me!