続・音速でGitHub Pagesを設定する(MacOS)

こちらの記事の続きです.

GitHubにデプロイする

まずは,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 remotegithub pagesのリポジトリを追加し,push

$ git remote add origin git@github.com:ユーザ名/ユーザ名.github.io.git
$ git push -u origin master

完了!!

自分のページ(https://ユーザ名.github.io/)を見てみよう. サイトが表示されるはず.

参考

https://jekyllrb.com/docs/