基礎から理解する github - resources.github.com · 他の人に変更を公開 •...
TRANSCRIPT
基礎から理解するGitHub⽥中 裕⼀Solutions Engineer, GitHub2019/06/26
Who am I?
⽥中 裕⼀Solutions Engineeryuichielectric
Confidential and proprietary information
Git ‒ 分散型バージョン管理システム• 各人がリポジトリの自分専用のコピーを持つ
プロジェクトの歴史、すべてのブランチコミット、履歴を調べる等操作をオフラインで実行可能
• リポジトリ間の同期自分のリポジトリを他のリポジトリと同期をすることで他の人に変更を公開
• ブランチのコストが低い作成が高速マージも楽
Confidential and proprietary information
Git & GitHub• GitHubはGitの上に作られている
Gitはソースのバージョン管理GitHubは開発の際のコラボレーション
• GitHubPull Request (コードレビュー)Issues (チケット管理)Projects (プロジェクトボード)Organizations and teams (ユーザー管理)Integrations (Visual Studio, Azure DevOps, AppVeyor)
Confidential and proprietary information
Microsoftの多くのチームがGitHubに移⾏していくのを⾒て、正直な所ソーシャルコーディング(※ GitHubを使った開発のやり⽅)は時に⽣産性と開発者の幸福度を10倍も⾼めると⾔って良いと思う。Joe Duffy, Partner Director of Engineering, Microsoft
5
Confidential and proprietary information
GitHub Flow
Confidential and proprietary information
GitHub Flow & Pull Request
7
Confidential and proprietary information
GitHub Flow & Pull Requestリスクなしで実験をすることができる
タスク専用のブランチで他タスクの邪魔をしない開発の途中の状態を公開することの障壁が下がる早い段階でフィードバックをもらうことができるフィードバック = 修正が必要な箇所
フィードバック他の開発者からのコードレビューCIツールによるビルド・ユニットテストの結果テストカバレッジ
Confidential and proprietary information
GitHub Flow & Pull Requestフィードバックループ
フィードバックを元に追加のコミット追加のコミットに対して再度レビューCIツールによるビルドも再度実行もしどういった修正を行うべきかが不明確な場合はプルリクエスト上で同僚と相談する事も可能
各フェーズにおけるバグの修正コスト
$0
$4,000
$8,000
$12,000
$16,000
要件 設計 開発 テスト 運⽤
HTTPS://AGILEELEMENTS.WORDPRESS.COM/2008/04/22/COST-OF-SOFTWARE-DEFECTS/
運⽤時 VS 開発時
テスト時 VS 開発時
14倍
7倍
Confidential and proprietary information
継続的インテグレーションContinuous Integration
Confidential and proprietary information
マージを許可する条件
Confidential and proprietary information
Issue
Confidential and proprietary information
Projects
Confidential and proprietary information
Projects
Confidential and proprietary information 16
https://github.co.jp/enterprise