GitHub explained in plain terms means understanding the website where most of the world’s software is built, stored, and shared. The central question is how millions of developers, spread across every country, manage to work on the same code without overwriting each other’s work, and the short answer is that GitHub wraps the Git version control system in a web platform that tracks every change, reviews every contribution, and keeps a complete history of who did what and when.
Most people have heard the name even if they have never written a line of code. Open-source projects live there, companies run their engineering on it, and a developer’s GitHub profile has become something like a public portfolio, showing what they have built and what they have contributed to.
That position was not inevitable. GitHub launched in 2008, when sharing code still meant emailing patches or running a private server, and it won by making collaboration feel easy: a web page for every project, a button to suggest a change, and a record of everything. This article explains what GitHub is, how it works, and where it is used.
Key takeaways
- GitHub is a web platform built around Git, the version control system.
- Code lives in repositories, which hold the full history of every change.
- Pull requests let people propose changes for review before they are merged.
- Issues, actions, and pages turn a host into a complete workflow.
- It is the largest home of open-source software in the world.
What GitHub is
GitHub is a code hosting platform that stores Git repositories and adds collaboration tools on top of them. A repository, usually shortened to repo, is a project folder with a memory: every file, every change, and every version is recorded, so that any earlier state of the project can be recovered at any time.
The platform was founded in 2008 by Tom Preston-Werner, Chris Wanstrath, and PJ Hyett, and it grew quickly because it solved a real annoyance. Before GitHub, sharing a Git repository meant setting up a server and managing access by hand; GitHub made it a matter of creating an account and clicking a button. Microsoft bought the company in 2018 for 7.5 billion dollars, and it has run it as a largely independent subsidiary ever since.
Git is the engine underneath, and GitHub is the garage built around it. Git tracks changes on a developer’s own machine, while GitHub stores a shared copy online, so that a team can work from the same source of truth. Our guide to Git explains the version control system itself, and our guide to version control explains the wider idea of tracking changes over time.
How GitHub works
A project begins as a repository, which can be public, so that anyone can see it, or private, so that only invited people can. The owner pushes code from their own machine to the repository, and GitHub stores each commit, a snapshot of the changes, with a message describing what was done and who did it.
Contributors rarely edit the main branch directly. Instead, they create a branch, a separate line of work, make their changes there, and then open a pull request, which asks the maintainers to review the changes and merge them in. The pull request shows exactly which lines changed, and reviewers can comment on individual lines, request changes, or approve the work.
Issues are the other half of the workflow. An issue is a task, a bug report, or a feature request, written in plain language, that can be assigned to a person, labelled, and linked to the pull request that fixes it. A small project might have a handful of open issues, while a large one can have thousands, organised with labels and milestones.
GitHub Actions adds automation. A workflow file in the repository can run tests every time code is pushed, build the software, check it for errors, and even deploy it to a server. The checks run in the cloud, so a contributor can see within minutes whether their change broke anything, without running the whole test suite on their own machine.
Everything is versioned, including the discussions. Comments on issues and pull requests are kept forever, which means a newcomer can read why a decision was made years earlier. That history is one of GitHub’s quiet strengths: the platform remembers not only what changed, but why.

Comparing GitHub with Git alone
GitHub and Git are often confused, but they are different things. Git is a tool that runs on a developer’s own machine, while GitHub is a service that hosts Git repositories online and adds collaboration around them.
The table below sets out the main contrasts between the two.
| Aspect | GitHub | Git alone |
|---|---|---|
| What it is | A hosted web platform | A local command-line tool |
| Needs internet | Yes, to share and review | No, works fully offline |
| Collaboration | Pull requests, issues, reviews | None built in |
| Automation | Actions, checks, deployment | Hooks only, run locally |
| Cost | Free for public repos | Free, open source |
| Best for | Teams and open source | Local history and backup |
The practical result is that the two work together. Git does the tracking, and GitHub does the sharing, the reviewing, and the automating. A developer uses both every day, usually without thinking about where one ends and the other begins.
Where GitHub is used
Open-source software is GitHub’s most visible use. Projects from tiny utilities to operating systems live there in public repositories, where anyone can read the code, report a bug, or propose a fix. The platform’s social features, such as starring a project and following its authors, helped turn open source from a niche hobby into the default way software is built.
Companies use GitHub for private development. A team keeps its code in private repositories, reviews every change through pull requests, and runs its tests with Actions before anything is released. The same tools that serve a hobby project scale to thousands of engineers working on the same codebase.
Documentation often lives on GitHub too. Many projects keep their guides and manuals in the same repository as the code, and GitHub Pages can turn those files into a published website at no extra cost. When the code changes, the documentation changes with it, in the same pull request.
Education uses GitHub for teaching and assessment. Teachers distribute assignments as repositories, students submit their work as pull requests, and automated tests grade the results. GitHub Classroom, a free tool for the purpose, is used by schools and universities around the world.
Non-software work has found a home there as well. Writers keep books in repositories, researchers share data and analysis, and governments publish open data and even legislation drafts. Anything that benefits from a tracked history and public review can live on the platform.
Strengths and limits
The greatest strength of GitHub is its network effect. Because almost every developer already has an account, starting a project there means an audience is already present. A new open-source tool can attract contributors within days, which would be far harder on a lesser-known host.
It is also a strength that the workflow is standard. Pull requests, issues, and Actions work the same way on every project, so a developer who learns them once can contribute anywhere. That consistency is worth a great deal in an industry where tools change constantly.
The limits are real, though. GitHub is a single company’s platform, and although Git itself is open, the collaboration tools are not portable: moving a project elsewhere means losing its issues, pull requests, and history of discussion. Outages, though rare, can halt work for thousands of teams at once.
Privacy is another consideration. Public repositories are visible to everyone, including search engines, and a secret accidentally committed to a public repo can spread before it is deleted. Private repositories are safer, but the habit of pushing early and often means developers must be careful about what they include.
GitHub checklist
- Keep each repository focused on one project.
- Write clear commit messages that explain why, not only what.
- Use branches for new work, and merge through pull requests.
- Add a README that explains what the project does.
- Choose a licence before the project grows.
- Never commit passwords, keys, or secrets.
- Review pull requests promptly and kindly.
- Label issues so newcomers can find easy tasks.
- Run automated tests on every pull request.
Frequently asked questions
What is GitHub in simple terms?
GitHub is a website that stores code and helps people work on it together. It keeps every version of a project, lets people suggest changes for review, and tracks tasks and bugs in one place.
Is GitHub the same as Git?
No. Git is the version control tool that runs on your own computer, while GitHub is a website that hosts Git repositories and adds collaboration tools such as pull requests and issues.
Is GitHub free?
Yes, for most uses. Public repositories are free, and private repositories are free for individuals and small teams, with paid plans adding more features and larger limits.
What is a pull request?
A pull request is a proposal to merge one branch of work into another, usually the main branch. It shows the exact changes, lets reviewers comment, and runs automated tests before merging.
Can I use GitHub without knowing Git?
Partly. The website lets you browse code, edit files, and open issues without touching Git, but contributing code properly means learning at least the basics of branching and committing.
Who owns the code on GitHub?
You do. GitHub’s terms give it a licence to host and display your code, but the copyright stays with you, and the licence you choose decides what others may do with it.
The bottom line
GitHub explained in one line is this: a web platform that turns Git’s version tracking into a place where people can build software together, in public or in private.
It became the default home of software not by being the most powerful tool, but by being the easiest place to collaborate. For anyone who writes code, or who wants to understand how modern software is made, it is the first address to know.
This article is general information about how GitHub works, not advice about choosing a hosting platform for a particular project.







