GitHub で初めてのHPを公開

f:id:poohandduffy:20200824103022p:plain
まずは、Create a new repositoryから、新しいレポジトリーを作成。
名前は、ユーザーネーム.github.io.git とした。

作成したレポジトリーアドレスを、自分のパソコンにクローン。
コマンドプロントから、

git clone https://github.com/username/username.github.io.git

を実行。

cd username.github.io

ディレクトリーをクローンしたディレクトリーに移動。

クローンディレクトリー内に、htmlファイルを作成。名前はindex.htmlとした。

コマンドから、
git add index.html
git commit -m "First commit"
git push

としたら、クローンディレクトリーが、githubに反映されます。

初めてのHPができました。