続・音速でGitHub Pagesを設定する(MacOS)
こちらの記事の続きです.
GitHubにデプロイする
- リポジトリの名前は
ユーザ名.github.ioとすること. README.mdなどは要らないのでチェック外しておく
リポジトリを作ったら,gitのリンク(git@github.com:ユーザ名/ユーザ名.github.io.git)
をコピー.
サイトのディレクトリへ移動し,gitの管理下に置く
$ cd jekyll-blog $ git init $ git add . $ git commit -m "Initial Commit"
git remoteにgithub pagesのリポジトリを追加し,push
$ git remote add origin git@github.com:ユーザ名/ユーザ名.github.io.git $ git push -u origin master
完了!!
自分のページ(https://ユーザ名.github.io/)を見てみよう.
サイトが表示されるはず.