GitHub
| Technology | |
|---|---|
![]() Image placeholderPlace the file shown below in the assets/articles folder github.webp | |
| Type | Code hosting and collaboration platform |
| Launched | April 2008 |
| Founders | Tom Preston-Werner, Chris Wanstrath, PJ Hyett, Scott Chacon |
| Owner | Microsoft (acquired 2018) |
| Built on | Git |
GitHub is a web platform for hosting Git repositories and collaborating on software.[1] It adds a browser interface, access control and social features on top of Git, including pull requests for reviewing changes, issues for tracking work, and automation through GitHub Actions. It is the largest host of open source code in the world.
GitHub is a company service, not a version control system. Git itself is free software that runs on a developer's own computer. GitHub is one of several services, alongside GitLab and Bitbucket, that store shared copies of Git repositories and provide tools around them.
Git and GitHub
Git is a distributed version control system created by Linus Torvalds in 2005 to manage the Linux kernel source.[4] Every clone of a Git repository contains the full history, so work can happen offline and any copy can act as a backup.
Git does not specify where the shared copy lives or how people review each other's work. GitHub fills that gap. A repository on GitHub is a remote that developers clone, push commits to and fetch from. The platform stores the data, shows it on the web and manages who may read or write it.
git clone https://github.com/OWNER/REPO.git
git switch -c fix-typo
git commit -am "Fix typo in README"
git push -u origin fix-typo
# then open a pull request on github.comHistory
GitHub was founded by Tom Preston-Werner, Chris Wanstrath, PJ Hyett and Scott Chacon, and its website launched in April 2008. At that time Git was still new, and the service made it far easier to use by giving it a friendly web interface and a social model centred on people and projects.
In June 2018 Microsoft announced that it would acquire GitHub for 7.5 billion US dollars in stock, and the deal closed in October of that year. GitHub continued to operate as a separate service under Microsoft. In 2020 it bought the npm package registry, and its default branch name for new repositories changed from master to main.
Collaboration model
The central idea is the pull request. A contributor makes changes on a branch, pushes it and asks the maintainers to merge it. The request page shows the diff, lets reviewers comment on individual lines and runs automated checks before the merge.
For projects where the contributor does not have write access, GitHub popularised the fork workflow. A fork is a personal copy of a repository on the platform. The contributor pushes changes to the fork and proposes them back to the original project. This lowered the barrier to contributing to open source because no permission is needed to start.
Other core features include:
- Issues for bug reports, feature requests and task tracking
- Projects boards and milestones for planning
- Discussions for questions and community conversation
- Gists, small shareable snippets that are themselves Git repositories
- Pages, free static website hosting directly from a repository
- Releases, tagged versions with downloadable files
Automation: GitHub Actions
GitHub Actions is a built-in automation system. Workflows are described in YAML files stored in the .github/workflows directory and run in response to events such as a push or pull request.[3] They are commonly used for continuous integration, running tests and building packages on each change, and for continuous deployment.
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make testReusable steps are published as actions that other workflows can reference, which created a large ecosystem of shared automation.
Apps and integrations
GitHub can be extended with apps.[2] There are two main kinds. OAuth apps act on behalf of a user and are mostly used for sign-in and for tools that need a person's permission. GitHub Apps are installed on an account or organisation, have fine-grained permissions on chosen repositories and can act under their own identity. Many continuous integration services, code coverage tools, bots and security scanners are implemented as GitHub Apps and listed in the GitHub Marketplace.
Apps interact with the platform through a REST API, a GraphQL API and webhooks. A webhook sends an HTTP request to an external server whenever a chosen event happens, such as a new pull request, so that another service can react.
Security and AI features
GitHub includes tools for software supply chain security. Dependabot raises pull requests to update outdated or vulnerable dependencies, code scanning looks for vulnerabilities in source code, and secret scanning detects credentials that were committed by accident. The platform also publishes security advisories for open source packages.
GitHub Copilot, an AI coding assistant introduced as a technical preview in 2021 and generally released in 2022, suggests code inside editors and on the website.
Role in open source
Because most popular open source projects live on GitHub, its profiles, stars and contribution graphs have become a kind of public portfolio for developers. The platform also concentrates a lot of infrastructure in one company. Some projects therefore mirror their code elsewhere or self-host an alternative such as GitLab or Gitea. Since Git repositories are portable, moving between hosts is possible, although issues and pull request history are tied to each service.
Editorial connections and engineering implications
Pull requests, automation and project governance
A pull request proposes a change and gives maintainers a place to inspect diffs, discuss design and run checks before merging. Repository rules can define who may approve changes and which tests must pass. A useful review focuses on correctness, maintainability, security and scope rather than formatting alone. GitHub Actions adds event-triggered automation for testing, packaging and deployment, but workflows are security-sensitive: third-party actions, permissions and secret exposure need review.
A public repository does not automatically have a clear licence, support plan or contribution process. Healthy projects document how to report bugs, propose changes and disclose security issues. GitHub depends on Git for history but is one of several hosting platforms. Teams should consider access control, compliance, availability, integrations and the ability to export data. The lasting asset is the repository and its documented workflow, not the hosting brand alone.
See also
- Git – A distributed version control system that tracks changes to files as a graph of snapshots.
- Linus Torvalds – Finnish-American software engineer who created the Linux kernel and the Git version control system.
- Microsoft – An American technology company known for Windows, Office, Azure and developer tools.
- Linux – A family of open-source, Unix-like operating systems based on the Linux kernel.
- React – A JavaScript library for building user interfaces from composable components.
- Docker – A platform for building, distributing and running applications in containers.
- The Mother of All Demos (1968) – A 1968 public demonstration by Douglas Engelbart of an interactive computing system with a mouse, hypertext and video conferencing.
- C (programming language) – A general-purpose, statically typed systems programming language created at Bell Labs in the early 1970s.
References
- ↑ GitHub Docs, About GitHub and Git (docs.github.com)
- ↑ GitHub Docs, About apps (docs.github.com)
- ↑ GitHub Docs, Understanding GitHub Actions (docs.github.com)
- ↑ Git, About (git-scm.com)
