Slide 1

Slide 1 text

Contribution to OSS Contribution to OSS OSS 勉強会 #2 2020/09/02 @kawanamiyuu 1

Slide 2

Slide 2 text

ハンズオン ハンズオン 2

Slide 3

Slide 3 text

GitHub で OSS にコントリビュートする GitHub で OSS にコントリビュートする 具体的な⼿順 具体的な⼿順 1. GitHub 上で対象のリポジトリを fork する 2. fork したリポジトリをローカルに clone する 3. ローカルでリポジトリに対して作業する 4. リポジトリを GitHub に push し、Pull Request を 作成する 5. Pull Request が対象のリポジトリに merge される 3

Slide 4

Slide 4 text

1. GitHub 上で対象のリポジ 1. GitHub 上で対象のリポジ トリを fork する トリを fork する 4

Slide 5

Slide 5 text

5

Slide 6

Slide 6 text

6

Slide 7

Slide 7 text

7

Slide 8

Slide 8 text

2. fork したリポジトリをロ 2. fork したリポジトリをロ ーカルに clone する ーカルに clone する 8

Slide 9

Slide 9 text

$ git clone https://github.com/kawanamiyuu/sandbox.git $ cd sandbox $ git remote -v origin https://github.com/kawanamiyuu/sandbox.git (fetch) origin https://github.com/kawanamiyuu/sandbox.git (push) 9

Slide 10

Slide 10 text

3. ローカルでリポジトリ 3. ローカルでリポジトリ に対して作業する に対して作業する 10

Slide 11

Slide 11 text

Tips: fork 元のリポジトリの変更に追 Tips: fork 元のリポジトリの変更に追 従する⽅法 従する⽅法 $ git remote add upstream https://github.com/oss-friends/sandbox. $ git remote -v origin https://github.com/kawanamiyuu/sandbox.git (fetch) origin https://github.com/kawanamiyuu/sandbox.git (push) upstream https://github.com/oss-friends/sandbox.git (fetch upstream https://github.com/oss-friends/sandbox.git (push) $ git pull --rebase upstream master # or `git merge upstream/mast 11

Slide 12

Slide 12 text

4. リポジトリを GitHub に push 4. リポジトリを GitHub に push し、Pull Request を作成する し、Pull Request を作成する 12

Slide 13

Slide 13 text

13

Slide 14

Slide 14 text

14

Slide 15

Slide 15 text

15

Slide 16

Slide 16 text

5. Pull Request が対象のリポジ 5. Pull Request が対象のリポジ トリに merge される トリに merge される 16

Slide 17

Slide 17 text

Congratulate on your first contribution !! Congratulate on your first contribution !! 17