LoginSignup
0
4

More than 3 years have passed since last update.

GitHub pagesってなんぞ?

Last updated at Posted at 2016-03-10

GitHub pagesってなんぞ?

概要

「GitHub pages」って単語は聞いたことがあるが、実際に使った事はなかったので、
調べれ見たところ、まぁまぁそこそこ使えたのでまとめます。

GitHub pagesとは

無料でWebページが公開できる。
Gtihubの一機能
Gtihubのアカウントさえあれば誰でも利用可能です。

公式サイト https://pages.github.com/

使い方

1.gitでリポジトリを作成します。
gitname.github.io

2.リポジトリをcloneします。
git clone https://github.com/gitname/gitname.github.io

3."Hello World"の作成
cd gitname.github.io
echo "Hello World" > index.html

4.commit&push!
git add --all
git commit -m "first commit"
git push -u origin master

5.公開確認
http://gitname.github.io.

補足情報

BitbucketでもGithub PagesのようにWebページを公開が可能です。
また、静的サイトジェネレータとの相性が良い
(Jekyll/Octopress/Hexo/metalsmith/assemble/)

感想

railsやphpを使わない静的なものを取り急ぎ公開したい時に便利。そんな場面あまり無いですが。
jsのライブラリ・プラグイン等、静的なページでdemoがないgit hubを見つけたらサクッと持ってきてアップして動きの確認を簡単にできる。そんな場面あまり無いですが。

参考文献

http://liginc.co.jp/web/html-css/html/96453
http://qiita.com/budougumi0617/items/221bb946d1c90d6769e9
http://qiita.com/n0bisuke/items/8576456f2e329cb1df45

0
4
2

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
0
4