Skip to content

Commit

Permalink
#20 Merge pull request from a-lab-nagoya/astropenguin/issue19
Browse files Browse the repository at this point in the history
Update docs for the tutorial in 2024
  • Loading branch information
astropenguin authored Jun 12, 2024
2 parents 2578063 + 84ff170 commit 0780f64
Show file tree
Hide file tree
Showing 20 changed files with 56 additions and 44 deletions.
6 changes: 0 additions & 6 deletions .devcontainer/Dockerfile

This file was deleted.

32 changes: 20 additions & 12 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{
"name": "git-github-tutorial",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"extensions": [
"github.vscode-pull-request-github",
"marp-team.marp-vscode",
"mhutchie.git-graph",
"streetsidesoftware.code-spell-checker"
"image": "alpine/git:latest",
"runArgs": [
"--name=git-github-tutorial"
],
"settings": {
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true
"customizations": {
"vscode": {
"extensions": [
"github.vscode-pull-request-github",
"marp-team.marp-vscode",
"mhutchie.git-graph",
"streetsidesoftware.code-spell-checker"
],
"settings": {
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"[markdown]": {
"editor.insertSpaces": true,
"editor.wordWrap": "on"
}
}
}
}
}
Binary file added docs/images/decode-actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/decode-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/decode-issues.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/deshima-sensitivity-actions.png
Binary file not shown.
Binary file removed docs/images/deshima-sensitivity-code.png
Binary file not shown.
Binary file removed docs/images/deshima-sensitivity-issues.png
Binary file not shown.
Binary file modified docs/images/tutorial-commit-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-commit-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-commit-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-github-issue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-github-pr-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-github-pr-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-github-pr-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-github-pr-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-github-pr-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-topic-branch-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/tutorial-topic-branch-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 36 additions & 26 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg')

# Git and GitHub tutorial

**@ 2022-09-07 / by Akio Taniguchi (A-lab, postdoc)**
**@ 2024-06-12 / by Akio Taniguchi (project assistant professor)**

- **目的:**
- 世界標準のバージョン管理システム[Git](https://git-scm.com/)と開発プラットフォーム[GitHub](https://github.com/)を使ったソフトウェア開発の方法をざっくり学ぶ
Expand Down Expand Up @@ -49,10 +49,16 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg')

---

![bg 80%](https://cdn-ak.f.st-hatena.com/images/fotolife/t/tanisuke_str/20180811/20180811131457.jpg)

<!-- _footer: こうなることを避けたい… (https://tanisukestr.hatenablog.com/entry/2018/08/11/154820) -->

---

## バージョン管理システムGit

- **[Git](https://git-scm.com/)**
- 2022年現在、ソフトウェア開発において最も使われているVCS
- 2024年現在、ソフトウェア開発において最も使われているVCS
- もともとは[Linuxのソースコード](https://github.com/torvalds/linux)管理のために作成された
- **分散型のバージョン管理**
- リポジトリ(en: repository)と呼ばれる、変更履歴を保存するデータベースのような仕組みを使ってバージョン管理する
Expand Down Expand Up @@ -117,7 +123,7 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg')
## ソフトウェア開発プラットフォームGitHub

- **[GitHub](https://github.com)**
- 全世界で[8,300万人以上](https://github.com/about)が利用する開発プラットフォーム
- 全世界で[1億人以上](https://github.com/about)が利用する開発プラットフォーム
- 様々な[オープンソースプロジェクト](https://github.com/topics/python?l=python&o=desc&s=forks)のバージョン管理・プロジェクト管理(バグ報告・新機能提案)に利用されている
- **主な機能**
- Gitのリモートリポジトリのホスティング
Expand All @@ -140,21 +146,21 @@ backgroundImage: url('https://marp.app/assets/hero-background.jpg')

---

![bg 70%](images/deshima-sensitivity-code.png)
![bg 80%](images/decode-code.png)

<!-- _footer: DESHIMAプロジェクトにおけるバージョン管理 (https://github.com/deshima-dev/deshima-sensitivity) -->
<!-- _footer: DESHIMAプロジェクトにおけるバージョン管理 (https://github.com/deshima-dev/decode) -->

---

![bg 70%](images/deshima-sensitivity-issues.png)
![bg 80%](images/decode-issues.png)

<!-- _footer: DESHIMAプロジェクトにおけるバージョン管理 (https://github.com/deshima-dev/deshima-sensitivity) -->
<!-- _footer: DESHIMAプロジェクトにおけるバージョン管理 (https://github.com/deshima-dev/decode/issues) -->

---

![bg 70%](images/deshima-sensitivity-actions.png)
![bg 80%](images/decode-actions.png)

<!-- _footer: DESHIMAプロジェクトにおけるバージョン管理 (https://github.com/deshima-dev/deshima-sensitivity) -->
<!-- _footer: DESHIMAプロジェクトにおけるバージョン管理 (https://github.com/deshima-dev/decode/actions) -->

---

Expand Down Expand Up @@ -226,13 +232,13 @@ $ code --install-extension mhutchie.git-graph
- **Gitの初期設定(ローカル)**
- `ctrl-backquote`でVS Codeのターミナルを開いて以下を設定する
```shell
$ git config --global user.name "<your name>"
$ git config --global user.email "<your email address>"
$ git config --global user.name "<your name in romaji>"
$ git config --global user.email "<your public email address>"
```
- **GitHub issueの作成(GitHub)**
- [New issue](https://github.com/a-lab-nagoya/playground/issues)からissueを作成する(何でも良い)
- Issueの例:[タスクAを完了させる · Issue #1](https://github.com/a-lab-nagoya/playground/issues/1)
- 発行されたissue番号(例:#1)を各自で控えておく
- Issueの例:[Work Bのタスクを完了させる #51](https://github.com/a-lab-nagoya/playground/issues/51)
- 発行されたissue番号(例:#51)を各自で控えておく

---

Expand All @@ -244,20 +250,20 @@ $ code --install-extension mhutchie.git-graph

- **トピックブランチの作成(ローカル)**
- VS Codeでブランチを作成する(`⌘⇧P` → create branch)
- ブランチ名にはissue番号を含める(例:#1-task-a
- ブランチ名にはissue番号を含める(例:astropenguin/issue51
- **ファイルやコードを編集する(ローカル)**
- ここでは`2022/todo.md`の該当タスクにチェックを付ける
- ここでは`2024/todo.md`の該当タスクにチェックを付ける
- **変更をコミットする(ローカル)**
- VS Codeのソース管理から変更をコミットする
- メッセージにはissue番号を含める(例:#1 Resolve task A
- メッセージにはissue番号を含める(#51 Close task of Work B

---

![bg 80%](images/tutorial-topic-branch-1.png)
![bg 90%](images/tutorial-topic-branch-1.png)

---

![bg 80%](images/tutorial-topic-branch-2.png)
![bg 90%](images/tutorial-topic-branch-2.png)

---

Expand All @@ -268,37 +274,41 @@ $ code --install-extension mhutchie.git-graph
- Git Graphでプッシュされたことを確認してみよう
- **変更をマージする(GitHub)**
- [New pull request](https://github.com/a-lab-nagoya/playground/compare)からトピックブランチをmainブランチにマージするためのプルリクエストを作成する
- `base: main``compare: #1-task-a`(例)となるようにする
- `base: main``compare: <作成した自分のブランチ名>`となるようにする
- レビュワーを誰か一人指定する(例:[astropenguin](https://github.com/astropenguin))
- レビューが通ったらMerge pull requestからマージする

---

![bg 80%](images/tutorial-commit-1.png)
![bg 90%](images/tutorial-commit-1.png)

---

![bg 90%](images/tutorial-commit-2.png)

---

![bg 80%](images/tutorial-commit-2.png)
![bg 90%](images/tutorial-commit-3.png)

---

![bg 80%](images/tutorial-commit-3.png)
![bg 90%](images/tutorial-github-pr-1.png)

---

![bg 80%](images/tutorial-github-pr-1.png)
![bg 90%](images/tutorial-github-pr-2.png)

---

![bg 80%](images/tutorial-github-pr-2.png)
![bg 90%](images/tutorial-github-pr-3.png)

---

![bg 80%](images/tutorial-github-pr-3.png)
![bg 90%](images/tutorial-github-pr-4.png)

---

![bg 80%](images/tutorial-github-pr-4.png)
![bg 90%](images/tutorial-github-pr-5.png)

---

Expand Down

0 comments on commit 0780f64

Please sign in to comment.