It is commonly used to host open source software development projects.[8] As of January 2023[update], GitHub reported having over 100 million developers[9] and more than 420 million repositories,[10] including at least 28 million public repositories.[11] It is the world's largest source code host as of June 2023[update]. Over five billion developer contributions were made to more than 500 million open source projects in 2024.[12]
GitHub, Inc. was originally a flat organization with no middle managers, instead relying on self-management.[18] Employees could choose to work on projects that interested them (open allocation), but the chief executive set salaries.[19]
In 2014, the company added a layer of middle management in response to serious harassment allegations against its senior leadership. As a result of the scandal, Tom Preston-Werner resigned from his position as CEO.[20]
Finance
GitHub was a bootstrappedstart-up business, which in its first years provided enough revenue to be funded solely by its three founders and start taking on employees.[21]
In July 2015 GitHub raised another $250 million (~$314 million in 2023) of venture capital in a series B round. The lead investor was Sequoia Capital, and other investors were Andreessen Horowitz, Thrive Capital, IVP (Institutional Venture Partners) and other venture capital funds.[23][24] The company was then valued at approximately $2 billion.[25]
As of 2023,[update] GitHub was estimated to generate $1 billion in revenue.[2]
On February 24, 2009, GitHub announced that within the first year of being online, GitHub had accumulated over 46,000 public repositories, 17,000 of which were formed in the previous month. At that time, about 6,200 repositories had been forked at least once, and 4,600 had been merged.
That same year, the site was used by over 100,000 users, according to GitHub,[27] and had grown to host 90,000 unique public repositories, 12,000 having been forked at least once, for a total of 135,000 repositories.[28]
In 2010, GitHub was hosting 1 million repositories.[29] A year later, this number doubled.[30]ReadWriteWeb reported that GitHub had surpassed SourceForge and Google Code in total number of commits for the period of January to May 2011.[31] On January 16, 2013, GitHub passed the 3 million users mark and was then hosting more than 5 million repositories.[32] By the end of the year, the number of repositories was twice as great, reaching 10 million repositories.[33]
In 2015, GitHub opened an office in Japan, its first outside of the U.S.[34]
On February 28, 2018, GitHub fell victim to the third-largest distributed denial-of-service (DDoS) attack in history, with incoming traffic reaching a peak of about 1.35 terabits per second.[35]
On June 19, 2018, GitHub expanded its GitHub Education by offering free education bundles to all schools.[36][37]
On June 4, 2018, Microsoft announced its intent to acquire GitHub for US$7.5 billion (~$8.96 billion in 2023). The deal closed on October 26, 2018.[41] GitHub continued to operate independently as a community, platform and business.[42] Under Microsoft, the service was led by Xamarin's Nat Friedman, reporting to Scott Guthrie, executive vice president of Microsoft Cloud and AI. Nat Friedman resigned November 3, 2021; he was replaced by Thomas Dohmke.[43]
There have been concerns from developers Kyle Simpson, JavaScript trainer and author, and Rafael Laguna, CEO at Open-Xchange over Microsoft's purchase, citing uneasiness over Microsoft's handling of previous acquisitions, such as Nokia's mobile business and Skype.[44][45]
This acquisition was in line with Microsoft's business strategy under CEO Satya Nadella, which has seen a larger focus on cloud computing services, alongside the development of and contributions to open-source software.[7][40][46]Harvard Business Review argued that Microsoft was intending to acquire GitHub to get access to its user base, so it can be used as a loss leader to encourage the use of its other development products and services.[47]
Concerns over the sale bolstered interest in competitors: Bitbucket (owned by Atlassian), GitLab and SourceForge (owned by BIZX, LLC) reported that they had seen spikes in new users intending to migrate projects from GitHub to their respective services.[48][49][50][51][52]
In September 2019, GitHub acquired Semmle, a code analysis tool.[53] In February 2020, GitHub launched in India under the name GitHub India Private Limited.[54] In March 2020, GitHub announced that it was acquiring npm, a JavaScript packaging vendor, for an undisclosed sum of money.[55] The deal was closed on April 15, 2020.[56]
In early July 2020, the GitHub Archive Program was established to archive its open-source code in perpetuity.[57]
Mascot
GitHub's mascot is an anthropomorphized "octocat" with five octopus-like arms.[58][59] The character was created by graphic designer Simon Oxley as clip art to sell on iStock,[60] a website that enables designers to market royalty-freedigital images. The illustration GitHub chose was a character that Oxley had named Octopuss.[60] Since GitHub wanted Octopuss for their logo (a use that the iStock license disallows), they negotiated with Oxley to buy exclusive rights to the image.[60]
GitHub renamed Octopuss to Octocat,[60] and trademarked the character along with the new name.[58] Later, GitHub hired illustrator Cameron McEfee to adapt Octocat for different purposes on the website and promotional materials; McEfee and various GitHub users have since created hundreds of variations of the character, which are available on The Octodex.[61][62]
Services
Projects on GitHub can be accessed and managed using the standard Git command-line interface; all standard Git commands work with it. GitHub also allows users to browse public repositories on the site. Multiple desktop clients and Git plugins are also available. In addition, the site provides social networking-like functions such as feeds, followers, wikis (using wiki software called Gollum), and a social network graph to display how developers work on their versions ("forks") of a repository and what fork (and branch within that fork) is newest.
Anyone can browse and download public repositories, but only registered users can contribute content to repositories. With a registered user account, users can have discussions, manage repositories, submit contributions to others' repositories, and review changes to code. GitHub began offering limited private repositories at no cost in January 2019 (limited to three contributors per project). Previously, only public repositories were free.[63][64][65] On April 14, 2020, GitHub made "all of the core GitHub features" free for everyone, including "private repositories with unlimited collaborators."[66]
The fundamental software that underpins GitHub is Git itself, written by Linus Torvalds, creator of Linux. The additional software that provides the GitHub user interface was written using Ruby on Rails and Erlang by GitHub, Inc. developers Wanstrath,[67] Hyett, and Preston-Werner.
Scope
The primary purpose of GitHub is to facilitate the version control and issue tracking aspects of software development. Labels, milestones, responsibility assignment, and a search engine are available for issue tracking. For version control, Git (and, by extension, GitHub) allows pull requests to propose changes to the source code. Users who can review the proposed changes can see a diff between the requested changes and approve them. In Git terminology, this action is called "committing" and one instance of it is a "commit." A history of all commits is kept and can be viewed at a later time.
In addition, GitHub supports the following formats and features:
Wikis,[69] with some repositories consisting solely of wiki content. These include curated lists of recommended software which have become known as awesome lists.[70][71]
GitHub Actions,[72] which allows building continuous integration and continuous deployment pipelines for testing, releasing and deploying software without the use of third-party websites/platforms
GitHub Codespaces, an online IDE providing users with a virtual machine intended to be a work environment to build and test code[73][74][75]
Graphs: pulse, contributors, commits, code frequency, punch card, network, members
3D render files can be previewed using an integrated STL file viewer that displays the files on a "3D canvas."[81] The viewer is powered by WebGL and Three.js.
Support for previewing many common image formats, including Photoshop's PSD files
GitHub's Terms of Service do not require public software projects hosted on GitHub to meet the Open Source Definition. The terms of service state, "By setting your repositories to be viewed publicly, you agree to allow others to view and fork your repositories."[82]
GitHub Enterprise
GitHub Enterprise is a self-managed version of GitHub with similar functionality. It can be run on an organization's hardware or a cloud provider and has been available as of November 2011[update].[83] In November 2020, source code for GitHub Enterprise Server was leaked online in an apparent protest against DMCA takedown of youtube-dl. According to GitHub, the source code came from GitHub accidentally sharing the code with Enterprise customers themselves, not from an attack on GitHub servers.[84][85]
GitHub Pages
In 2008, GitHub introduced GitHub Pages, a staticweb hosting service for blogs, project documentation,[86][87] and books.[88] All GitHub Pages content is stored in a Git repository as files served to visitors verbatim or in Markdown format. GitHub is integrated with Jekyll static website and blog generator and GitHub continuous integration pipelines. Each time the content source is updated, Jekyll regenerates the website and automatically serves it via GitHub Pages infrastructure.[89]
Like the rest of GitHub, it includes free and paid service tiers. Websites generated through this service are hosted either as subdomains of the github.io domain or can be connected to custom domains bought through a third-party domain name registrar.[90] GitHub Pages supports HTTPS encryption.[91][92]
Gist
GitHub also operates a pastebin-style site called Gist, which is for code snippets, as opposed to GitHub proper, which is usually used for larger projects.[16] Tom Preston-Werner débuted the feature at a Ruby conference in 2008.[93]
Gist builds on the traditional simple concept of a pastebin by adding version control for code snippets, easy forking, and TLS encryption for private pastes. Because each "gist" is its own Git repository, multiple code snippets can be contained in a single page, and they can be pushed and pulled using Git.[94]
Unregistered users could upload Gists until March 19, 2018, when uploading Gists was restricted to logged-in users, reportedly to mitigate spamming on the page of recent Gists.[95]
Gists' URLs use hexadecimal IDs, and edits to Gists are recorded in a revision history, which can show the text difference of thirty revisions per page with an option between a "split" and "unified" view. Like repositories, Gists can be forked, "starred", i.e., publicly bookmarked, and commented on. The count of revisions, stars, and forks is indicated on the gist page.[96]
In 2016, GitHub announced the launch of the GitHub Campus Experts program[98] to train and encourage students to grow technology communities at their universities. The Campus Experts program is open to university students 18 years and older worldwide.[99] GitHub Campus Experts are one of the primary ways that GitHub funds student-oriented events and communities, Campus Experts are given access to training, funding, and additional resources to run events and grow their communities. To become a Campus Expert, applicants must complete an online training course with multiple modules to develop community leadership skills.
GitHub Marketplace service
GitHub also provides some software as a service (SaaS) integrations for adding extra features to projects. Those services include:
Waffle.io: project management for software teams, which allows users to automatically see pull requests, automated builds, reviews, and deployments across repositories.[100]
Rollbar: provides real-time debugging tools and full-stack exception reporting.[101][102]
Codebeat: automated code analysis for web and mobile developers.[citation needed]
GitLocalize: provides utilities to manage project translation and internationalisation.[citation needed]
GitHub Sponsors
GitHub Sponsors allows users to make monthly money donations to projects hosted on GitHub.[103] The public beta was announced on May 23, 2019, and the project accepts waitlist registrations. The Verge said that GitHub Sponsors "works exactly like Patreon" because "developers can offer various funding tiers that come with different perks, and they'll receive recurring payments from supporters who want to access them and encourage their work" except with "zero fees to use the program." Furthermore, GitHub offers incentives for early adopters during the first year: it pledges to cover payment processing costs and match sponsorship payments up to $5,000 per developer. Furthermore, users can still use similar services like Patreon and Open Collective and link to their websites.[104][105]
In July 2020, GitHub stored a February archive of the site[57] in an abandoned mountain mine in Svalbard, Norway, part of the Arctic World Archive and not far from the Svalbard Global Seed Vault. The archive contained the code of all active public repositories, as well as that of dormant but significant public repositories. The 21TB of data was stored on piqlFilm archival film reels as matrix (2D) barcode (Boxing barcode), and is expected to last 500–1,000 years.[106][107][108][109]
The GitHub Archive Program is also working with partners on Project Silica, in an attempt to store all public repositories for 10,000 years. It aims to write archives into the molecular structure of quartz glass platters, using a high-precision petahertz pulse laser, i.e. one that pulses a quadrillion (1,000,000,000,000,000) times per second.[109]
In March 2014, GitHub programmer Julie Ann Horvath alleged that founder and CEO Tom Preston-Werner and his wife, Theresa, engaged in a pattern of harassment against her that led to her leaving the company.[110] In April 2014, GitHub released a statement denying Horvath's allegations.[111][112][113] However, following an internal investigation, GitHub confirmed the claims. GitHub's CEO Chris Wanstrath wrote on the company blog, "The investigation found Tom Preston-Werner in his capacity as GitHub's CEO acted inappropriately, including confrontational conduct, disregard of workplace complaints, insensitivity to the impact of his spouse's presence in the workplace, and failure to enforce an agreement that his spouse should not work in the office."[114] Preston-Werner subsequently resigned from the company.[115] The firm then announced it would implement new initiatives and trainings "to make sure employee concerns and conflicts are taken seriously and dealt with appropriately."[115]
Sanctions
On July 25, 2019, a developer based in Iran wrote on Medium that GitHub had blocked his private repositories and prohibited access to GitHub pages.[116] Soon after, GitHub confirmed that it was now blocking developers in Iran, Crimea, Cuba, North Korea, and Syria from accessing private repositories.[117] However, GitHub reopened access to GitHub Pages days later, for public repositories regardless of location. It was also revealed that using GitHub while visiting sanctioned countries could result in similar actions occurring on a user's account. GitHub responded to complaints and the media through a spokesperson, saying:
GitHub is subject to US trade control laws, and is committed to full compliance with applicable law. At the same time, GitHub's vision is to be the global platform for developer collaboration, no matter where developers reside. As a result, we take seriously our responsibility to examine government mandates thoroughly to be certain that users and customers are not impacted beyond what is required by law. This includes keeping public repositories services, including those for open source projects, available and accessible to support personal communications involving developers in sanctioned regions.[118][119]
Developers who feel that they should not have restrictions can appeal for the removal of said restrictions, including those who only travel to, and do not reside in, those countries. GitHub has forbidden the use of VPNs and IP proxies to access the site from sanctioned countries, as purchase history and IP addresses are how they flag users, among other sources.[120]
On December 4, 2014, Russia blacklisted GitHub.com because GitHub initially refused to take down user-posted suicide manuals.[121] After a day, Russia withdrew its block,[122] and GitHub began blocking specific content and pages in Russia.[123] On December 31, 2014, India blocked GitHub.com along with 31 other websites over pro-ISIS content posted by users;[124] the block was lifted three days later.[125] On October 8, 2016, Turkey blocked GitHub to prevent email leakage of a hacked account belonging to the country's energy minister.[126]
On March 26, 2015, a large-scale DDoS attack was launched against GitHub.com that lasted for just under five days.[127] The attack, which appeared to originate from China, primarily targeted GitHub-hosted user content describing methods of circumventing Internet censorship.[128][129][130]
On April 19, 2020, Chinese police detained Chen Mei and Cai Wei (volunteers for Terminus 2049, a project hosted on GitHub), and accused them of "picking quarrels and provoking trouble." Cai and Chen archived news articles, interviews, and other materials published on Chinese media outlets and social media platforms that have been removed by censors in China.[131]
GitHub has a $200,000 contract with U.S. Immigration and Customs Enforcement (ICE) for the use of their on-site product GitHub Enterprise Server. This contract was renewed in 2019, despite internal opposition from many GitHub employees. In an email sent to employees, later posted to the GitHub blog on October 9, 2019, CEO Nat Friedman stated, "The revenue from the purchase is less than $200,000 and not financially material for our company." He announced that GitHub had pledged to donate $500,000 to "nonprofit groups supporting immigrant communities targeted by the current administration."[132] In response, at least 150 GitHub employees signed an open letter re-stating their opposition to the contract, and denouncing alleged human rights abuses by ICE. As of November 13, 2019, five workers had resigned over the contract.[133][134][135]
The ICE contract dispute came into focus again in June 2020 due to the company's decision to abandon "master/slave" branch terminology, spurred by the George Floyd protests and Black Lives Matter movement.[136] Detractors of GitHub describe the branch renaming to be a form of performative activism and have urged GitHub to cancel their ICE contract instead.[137] An open letter from members of the open source community was shared on GitHub in December 2019, demanding that the company drop its contract with ICE and provide more transparency into how they conduct business and partnerships. The letter has been signed by more than 700 people.[138]
Capitol riot comments and employee firing
In January 2021, GitHub fired one of its employees after he expressed concern for colleagues following the January 6 United States Capitol attack, calling some of the rioters "Nazis".[139] After an investigation, GitHub's COO said there were "significant errors of judgment and procedure" with the company's decision to fire the employee. As a result of the investigation, GitHub reached out to the employee, and the company's head of human resources resigned.[140][141]
Twitter source code leak
In 2023, parts of the social media platform Twitter were uploaded onto GitHub. The leak was first reported by the New York Times and was part of a legal filing Twitter submitted to the United States District Court for the Northern District of California. Twitter claimed that the postings infringed on copyright property owned by them, and asked the court for information to identify the user who posted the source code to GitHub, under the username "FreeSpeechEnthusiast".[142]
Reception
Linus Torvalds, the original developer of the Git software, has highly praised GitHub by stating "The hosting of github [sic] is excellent. They've done a good job on that. I think GitHub should be commended enormously for making open source project hosting so easy." However, he also sharply criticized the implementation of GitHub's merging interface, stating that "Git comes with a nice pull-request generation module, but GitHub instead decided to replace it with their own totally inferior version. As a result, I consider GitHub useless for these kinds of things. It's fine for hosting, but the pull requests and the online commit editing, are just pure garbage."[143][144]
^ abCatone, Josh (July 24, 2008). "GitHub Gist is Pastie on Steroids". Archived from the original on March 22, 2021. Retrieved February 13, 2018. GitHub hosts about 10,000 projects and officially launched in April of this year after a beta period of a few months.
^Klint finley (June 2, 2011). "Github Has Surpassed Sourceforge and Google Code in Popularity". ReadWrite. Archived from the original on August 1, 2020. Retrieved February 13, 2018. During the period Black Duck examined, Github had 1,153,059 commits, Sourceforge had 624,989, Google Code and 287,901 and CodePlex had 49,839.
^Doll, Brian (December 23, 2013). "10 Million Repositories". The GitHub Blog. Archived from the original on October 9, 2017. Retrieved December 28, 2013.
^Epling, Jeremy (April 15, 2020). "npm has joined GitHub". GitHub. GitHub, Inc. Archived from the original on November 20, 2020. Retrieved July 16, 2020.
^Pipinellis, Achilleas (September 30, 2015). GitHub Essentials. Packt Publishing Ltd. ISBN9781783553723. Archived from the original on August 1, 2020. Retrieved June 15, 2019.
^All GitHub Pages sites, including sites correctly configured with a custom domain, support HTTPS and HTTPS enforcement."Securing your GitHub Pages site with HTTPS". help.github.com. GitHub. Archived from the original on March 22, 2021. Retrieved June 1, 2020.