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