← Back to Library Developer Concepts Beginner 7 min read

What Is GitHub? Cloud Hosting, Pull Requests, and Collaboration

GitHub is a cloud-based hosting service and collaboration platform built around Git, allowing software developers to store, review, discuss, and deploy code projects globally.

💡 Plain-English Analogy

If Git is the camera that takes snapshots of your code, GitHub is the online photo album where you upload and share those snapshots with your teammates and the world.

⚙️ Architecture & Under the Hood

GitHub wraps remote Git repositories with collaborative tooling: Pull Requests for peer code review, Issues and Projects for agile tracking, GitHub Actions for automated continuous integration/continuous deployment (CI/CD), and GitHub Packages for artifact registry.

How Pull Requests (PRs) Work

A Pull Request is the cornerstone of collaborative open source. It notifies team members that you have completed a feature branch and requests that your changes be reviewed and merged into the main codebase.

  • Fork or Branch: Developer creates an isolated copy of the code.
  • Commit & Push: Developer pushes changes to remote GitHub server.
  • Open PR: Pull request shows side-by-side line diffs of all modifications.
  • Automated CI: GitHub Actions runs tests and linting automatically.
  • Code Review & Merge: Teammates review, approve, and merge into main.

Frequently Asked Questions

Are public repositories on GitHub free?

Yes! GitHub provides unlimited free public and private repositories for developers and open source projects.