削除された内容 追加された内容
プラン変更についての修正
m編集の要約なし
 
(38人の利用者による、間の48版が非表示)
1行目:
{{Pathnav|[[マイクロソフト]]|frame=1}}
{{一次資料|date=April 2011}}
{{混同|Git|GitLab}}
{{Infobox Website
| name = GitHub
| logo = [[File:Font Awesome 5 brands github.svg|64px]] [[File:GitHub logo 2013.svg|180px]]
| screenshot =
| url = {{official URL|https://github.com/}}
| alexa = 61位<ref name="alexa">{{cite web|url= http://www.alexa.com/siteinfo/github.com|title=github.com Site Overview|publisher=[[アレクサ・インターネット|Alexa]]|accessdate=2016-12-22}}</ref>
| commercial = Yes
| type = 協調的バージョンコントロール
| language = [[英語]]<!--、[[日本語]]-->
| num_users = 2800万1億(2018(202362月)<ref name="github.com">{{Cite web|url=https://github.comblog/2023-01-25-100-million-developers-and-counting/|title=GitHub.com100 million developers and counting|publisher=GitHub|language=英語|accessdate=20182023-0602-1502}}</ref><ref name="zdnet">{{Cite web|和書|url=https://japan.zdnet.com/article/35199295/|title=GitHubユーザー1億人時代--変わりつつある開発者の役割|accessdate=2023-02-02|publisher=ZDNet}}</ref>
| registration = 必要
| owner = GitHub, Inc.
26行目:
| slogan = Social Coding(社会的なコード記述)
}}
'''GitHub'''(ギットハブ)は、[[ソフトウェア開発]]の[[プラットフォーム]]であり、[[ソースコード]]を[[ホスティング]]する。コードの[[バージョン管理システム]]には[[Git]]を使用する。[[Ruby on Rails]]および[[Erlang]]で記述されており、[[アメリカ合衆国|アメリカ]]の[[カリフォルニア州]][[サンフランシスコ|サンフランシスコ市]]に拠点を置くGitHub社によって保守されている<!--(以前はLogical Awesome(社?)として知られていた)-->。主な開発者は[[:en:Chris Wanstrath|クリス・ワンストラス]][[:en:PJ Hyett|P.J.ハイエット]]{{ill|トム・プレストン・ワーナー|en|Tom Preston-Werner}}である<ref>
{{cite web
| url = http://www.rubyinside.com/github-officially-launches-git-hosting-a-go-go-853.html
38行目:
</ref>。
 
GitHub商用プランおよび[[オープンソース]]プロジェクト向けの無料アカウントを提供している。2019年1月より、プライベートリポジトリを無料で提供するようになった<ref>{{Cite web|url=https://blog.github.com/2019-01-07-new-year-new-github/|title=New year, new GitHub: Announcing unlimited free private repos and unified Enterprise offering|accessdate=2019-01-08|last=nat|date=2019-01-07|website=The GitHub Blog|language=en-gb}}</ref>2009年のユーザー調査によると、GitHubは最もポピュラーなGitホスティングサイトとなった<ref>{{Cite web|url=http://www.survs.com/WO/WebObjects/Survs.woa/wa/shareResults?survey=2PIMZGU0&rndm=678J66QRA2|title=Report {{!}} Survs|accessdate=2018-06-05|website=www.survs.com|language=en}}</ref>。2023年にはユーザ数1億人を突破した<ref name="github.com"/><ref name="zdnet"/>。
 
運営会社のGitHub, Inc.は[[2018年]]より[[マイクロソフトによる買収が発表され]]傘下となっている(後述)
 
== 概要 ==
GitHubにソースコードをホスティングすることで複数人のソフトウア開発者と協働してコードをレビューしたり、プロジェクトを管理しつつ開発を行うことができる。
 
このサイトは[[社会的ネットワーク|SNS]]機能をもち、feeds、followersとして提供されている。ネットワークグラフとして開発者は自身のソースコードのバージョンの[[リポジトリ]]を視覚的に把握できるようにしている。
51行目:
2010年1月、GitHubは「GitHub社」という組織で運営されることになった<ref>
{{cite web
| url = httphttps://github.com/blog/589-new-year-new-company
| title = New Year, New Company
| work = GitHub blog
61行目:
</ref>。
 
2018年6月4日に[[マイクロソフト]]がGitHub社を75億[[USドル]](約8200億円)で買収すると発表<ref name=":0">{{Cite news|url=httphttps://techxtech.nikkeibpnikkei.co.jpcom/atcl/nxt/news/18/01459/|title=マイクロソフトが「GitHub」を75億ドルで買収、独立性は維持|agency=[[日経BP]]|newspaper=日経クロステック|date=2018-06-05|accessdate=20182022-0607-0516}}</ref>。[[CEO]]の[[サティア・ナデラ]]によれば、手続き完了秋以降となる予定で、買収後もGitHub社独立企業として維持され意向を示し<ref name=":0" /><ref name=":1">{{Cite news|title=Microsoft + GitHub = Empowering Developers - The Official Microsoft Blog|date=2018-06-04|author=サティア・ナデラ|url=https://blogs.microsoft.com/blog/2018/06/04/microsoft-github-empowering-developers/|accessdate=2018-06-05|publication-date=2018-06-04|language=en-US|work=The Official Microsoft Blog}}</ref>、ワンストラスはマイクロソフトのテクニカルフェローとなることも発表された<ref name=":1" />。10月末に買収手続き完了し、予定通り[[Xamarin]]創業者の[[ナット・フリードマン]]が率いる予定<ref name=":1" />。WanstrathはCEOに就任、マイクロソフトのテクニカルフェロー傘下して新たることも発表されスタートを切った<ref>{{Cite nameweb|title="Microsoft completes GitHub acquisition|url=https:1"//blogs.microsoft.com/blog/2018/10/26/microsoft-completes-github-acquisition/|website=The Official Microsoft Blog|date=2018-10-26|accessdate=2019-05-31|language=en-US}}</ref><ref>{{Cite web|title=Pull request successfully merged. Starting build...|url=https://github.blog/2018-10-26-github-and-microsoft/|website=The GitHub Blog|date=2018-10-26|accessdate=2019-05-31|language=en-US}}</ref>。
 
ソフトウア開発者向けのウェブプラットフォームであるが、ファイルの[[アップローダー]]や[[ソーシャル・ネットワーキング・サービス]]とみなし、民間企業や教育機関がアクセスを制限する例もある<ref>[https://www.zaikei.co.jp/article/20180919/466566.html GitHubへのアクセスをブロックする企業や学校が増加] - [[財経新聞]]</ref>。
 
== 機能 ==
 
=== ブランチ保護 ===
GitHubは直接コミット禁止によるブランチの保護([https://docs.github.com/ja/free-pro-team@latest/github/administering-a-repository/about-protected-branches 保護されたブランチ]/''[https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/about-protected-branches protected branches]'')を提供している。
 
GitHubにホストされたリモートリポジトリはgit pushにより更新できるが、これを許容すると意図しないバグによりpushを受けたブランチが壊れるリスクがある。GitHubは「指定ブランチへの直接コミット禁止 + チェック通過Pull Requestを介したmerge/rebase許可」という機能を提供することで、ブランチに問題のあるコミットが混入しないことを可能にしている<ref>"Protected branches ensure that collaborators on your repository cannot make irrevocable changes to branches. Enabling protected branches also allows you to enable other optional checks and requirements, like required status checks and required reviews." [https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/about-protected-branches GitHub docs]</ref>。
 
==== ステータスチェック ====
GitHubはPull Requestのステータスチェックに基づいたmerge許可/拒否機能([https://docs.github.com/ja/free-pro-team@latest/github/administering-a-repository/about-required-status-checks 必須ステータスチェック]/''[https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/about-required-status-checks required status checks]'')を提供している。保護されたブランチにステータスチェックを適用した場合、ステータスがGreenの場合のみPull Request取り込みが許可される。テスト結果をステータス(Red/Green)とすることでテストを通過したPull Requestのみがブランチへマージされるように設定できる(c.f. [[継続的インテグレーション]])。
[[ファイル:RequiredStatusCheck.png|サムネイル|Status Check toward Pull Request]]
マージ後にテストが走る形のCIを行った場合、一時的であれそのブランチが壊れた状態になるリスクがある。ステータスチェックを利用することで、ブランチが常に利用可能となり、かつ壊れたブランチに基づいたforkをおこなう可能性を0にできる。
 
GitHubはAPIとして[https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#statuses status API]と[https://docs.github.com/en/free-pro-team@latest/rest/reference/checks Checks API]を提供しており、status APIによるRed/Greenの提示とChecks APIによるCI結果の詳細な提示をサポートしている。
 
=== GitHub Actions ===
GitHub ActionsはGitHubが提供する[[継続的インテグレーション|CI]]/[[継続的デプロイ|CD]]サービスである。
 
==== <code>pull_request</code>イベント ====
GitHub ActionsはPull Requestに応じたCIトリガー(<code>[https://docs.github.com/ja/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request pull_request]</code>)を提供している。このトリガーは<code>GITHUB_REF</code>引数として<code>refs/pull/:prNumber/merge/</code>
 
すなわちpull requestを自動マージしたブランチへの参照を提供する。Pull Requestに応じて<code>[https://github.com/actions/checkout actions/checkout@v2]</code>などでこのrefをチェックアウトすれば、Pull Requestをマージした状態に対してCIテストを走らせることが可能になる<ref>"Checkout pull request HEAD commit instead of merge commit" [https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit Checkout V2 - actions]</ref>。
 
== 脚注 ==
69 ⟶ 91行目:
 
== 参考文献 ==
{{No footnotes|section|date=October 2010}}
{{Refbegin}}
*{{cite web
| url = httphttps://arstechnica.com/journals/linux.arsinformation-technology/2008/07/17/canonicals-launchpad-gets-a-visual-refresh/
| title = Canonical's Launchpad gets a visual refresh
| work = {{仮リンク|[[Ars Technica|en|Ars Technica}}]]
| first = Ryan
| last = Paul
81 ⟶ 102行目:
}}
*{{cite news
| url = httphttps://www.washingtonpost.com/wp-dyn/content/article/2008/07/22/AR2008072200368.html
| title = GitHub unites Version Control with the Pastie
| work = [[ワシントン・ポスト]]
93 ⟶ 114行目:
== 関連項目 ==
{{Portal|FLOSS}}
* [[Git]]
* [[GitHub Pages]]
* [[OSSホスティングサービスの比較]]
* {{仮リンク|Arctic World Archive|en|Arctic World Archive}}
 
== 外部リンク ==
{{Commonscat|GitHub}}
{{Wikidata property}}
* {{official website}} {{En icon}}
* [https://github.com/ GitHub] {{ref-en}}
* [https://github.co.jp/ ギットハブ・ジャパン] {{Ja icon}}
* {{Twitter}}
* [https://github.co.blog/jp/ 日本法人サイトGitHubブログ ] {{ref-ja icon}}
* {{Twitter}} {{en icon}}
* {{Twitter|GitHubJapan|GitHub Japan}} {{ja icon}}
* [https://www.yomiuri.co.jp/life/digilife/column/20231127-OYT1T50164/ GitHubとは?…「オープンソース」文化に支えられた開発環境 (読売新聞、2023年12月2日) ]
 
{{マイクロソフト}}
{{Bug tracking systems}}
{{FOSS}}
{{DEFAULTSORT:Github}}
 
[[Category:技術のウェブサイト]]
[[Category:オープンソース文化・運動]]
[[Category:フリーソフトウェアのプロジェクト]]
[[Category:OSSホスティングサービス]]
[[Category:2008年開設のウェブサイト]]
[[Category:マイクロソフトによる買収]]
[[Category:2018年の合併と買収]]
[[Category:Git]]