Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Contribution to OSS

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Yu Kawanami Yu Kawanami
September 02, 2020

Contribution to OSS

社内で開催した OSS 勉強会の資料

原本はこちら
https://github.com/oss-friends/oss-study/blob/master/02-contribution-to-oss.md

Avatar for Yu Kawanami

Yu Kawanami

September 02, 2020
Tweet

More Decks by Yu Kawanami

Other Decks in Technology

Transcript

  1. GitHub で OSS にコントリビュートする GitHub で OSS にコントリビュートする 具体的な⼿順 具体的な⼿順

    1. GitHub 上で対象のリポジトリを fork する 2. fork したリポジトリをローカルに clone する 3. ローカルでリポジトリに対して作業する 4. リポジトリを GitHub に push し、Pull Request を 作成する 5. Pull Request が対象のリポジトリに merge される 3
  2. 5

  3. 6

  4. 7

  5. $ 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
  6. 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
  7. 4. リポジトリを GitHub に push 4. リポジトリを GitHub に push

    し、Pull Request を作成する し、Pull Request を作成する 12
  8. 13

  9. 14

  10. 15