1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitHub Pagesしてみる

Posted at

GitHub Pagesとは

GitHubアカウントを持っていればGitHub Pagesで超簡単に自分のWebsiteが作成できます。ElectronYEOMANBootstrapなどが利用しています。(そのほかのExample。)
個人のWebSiteとしては申し分ないですね。

早速作ってみた

Create a repository

username.github.ioという名前のレポジトリをつくります。usernameがアカウント名と一致していないと動作しません。
スクリーンショット 2018-12-05 0.10.33.png

Clone the repository

作成してプロジェクトをcloneします。

$ git clone https://github.com/uguisuhohokekyo/uguisuhohokekyo.github.io
Cloning into 'uguisuhohokekyo.github.io'...
warning: You appear to have cloned an empty repository.

Push

index.htmlを作成してpushします。

$ echo "Hello World" > index.html
$ git add --all

$ git commit -m "Initial commit"
[master (root-commit) 9e3adff] Initial commit
 1 file changed, 1 insertion(+)
 create mode 100644 index.html

$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 222 bytes | 222.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: 
remote: Create a pull request for 'master' on GitHub by visiting:
remote:      https://github.com/uguisuhohokekyo/uguisuhohokekyo.github.io/pull/new/master
remote: 
To https://github.com/uguisuhohokekyo/uguisuhohokekyo.github.io
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.

結果

わーい、自分のWenSiteが作成できました。
サーバーやらDBやら立てる必要ないので便利です。
スクリーンショット 2018-12-05 0.18.32.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?