Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
solareenlo committed Jul 13, 2019
1 parent 56cbf0f commit f628e2a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 19 additions & 9 deletions content/docs/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ git remote -v
git push -u origin master
```

## GitHub Pagesで静的サイトを公開する
```bash
cd 作業ディレクトリ名
git checkout -b gh-pages
vim index.html // index.htmlを作成
git push -u origin gh-pages
```
gh-pagesという名前のブランチにindex.htmlファイルを作っておけば, それが静的サイトとして「https://ユーザー名.github.io/リポジトリ名」として公開される.

## リポジトリに他のリポジトリをリンク付けする
```bash
git submodule add -b <リンク付けする方のブランチ名> <リンク付けする方のURL> <リンク付けされるディレクトリ名>
Expand Down Expand Up @@ -53,3 +44,22 @@ Host github github.com

## チートシート
- [Git Cheat Sheets](https://github.github.com/training-kit/)

# GitHub Pagesとは
- GitHubの静的サイトホスティングサービスのこと.

## 静的サイトを公開する
```bash
cd 作業ディレクトリ名
git checkout -b gh-pages
vim index.html // index.htmlを作成
git push -u origin gh-pages
```
gh-pagesという名前のブランチにindex.htmlファイルを作っておけば, それが静的サイトとして「https://ユーザー名.github.io/リポジトリ名」として公開される.

## サブドメインを割り当てる
- GitHub Pagesでサブドメインを割り当てる時はCNAMEを使用する.

|ホスト名|TYPE|TTL|VALUE|
|---|---|---|---|
|docs.iotajapan.com|CNAME|3600|iotajapan.github.io|
2 changes: 1 addition & 1 deletion public

0 comments on commit f628e2a

Please sign in to comment.