Skip to content
Tutorials Center
My learning

Topics

GitHub Tutorial

Learn GitHub step by step: 36 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is GitHub and Why Developers Use It Understand what GitHub is, how it differs from Git, what a remote repository does, and how the pieces of the platform fit together before you write a single command.
  2. 2 Your GitHub Account and Profile Create a GitHub account, choose a username, protect it with two-factor authentication, set your commit email correctly and build a profile README that presents your work.
  3. 3 Creating Your First Repository Create your first GitHub repository on the website, clone it, make a commit and push it, or push an existing local project. Learn what each step does and the usual errors.
  4. 4 Authentication: SSH Keys, Tokens and Credential Managers Learn how Git authenticates to GitHub over HTTPS and SSH, generate an Ed25519 key, use fine-grained personal access tokens safely and fix permission denied errors.
  5. 5 The GitHub CLI (gh) Use the gh command-line tool to sign in, create and clone repositories, open and review pull requests, manage issues, run API calls and write your own aliases.

Repositories and Collaboration

  1. 6 README, License and .gitignore Write a useful README, choose an open-source license, add a .gitignore, and include community health files so visitors can understand, trust and contribute to your project.
  2. 7 Branches on GitHub Work with branches on GitHub: the default branch, creating and renaming branches, naming conventions, comparing branches, tags, and cleaning up branches after merge.
  3. 8 Forks and Keeping Up With Upstream Learn what a fork is, when to fork instead of branch, how to add an upstream remote, sync your fork with the original repository and contribute changes back safely.
  4. 9 Collaborators, Roles and Repository Permissions Invite collaborators, understand the repository roles (read, triage, write, maintain, admin), choose public, private or internal visibility, and apply least privilege.
  5. 10 Organizations and Teams Create a GitHub organization, understand owners and members, build teams with nested structure, set base permissions and defaults, and use a .github repository for shared files.

Pull Requests and Reviews

  1. 11 Pull Requests: The Basics Open your first pull request: choose base and head, write a clear title and description, link issues with keywords, use drafts, push updates and read the Conversation tab.
  2. 12 Reviewing Pull Requests Review code on GitHub: line comments, suggested changes, approve, comment or request changes, resolve conversations, re-request review, and what makes a review useful.
  3. 13 Merge Methods and Resolving Conflicts Compare the three ways to merge a pull request on GitHub, learn what each does to history, set repository defaults, use auto-merge and merge queues, and resolve conflicts.
  4. 14 Branch Protection, Rulesets and CODEOWNERS Protect your main branch: require reviews and status checks, block force pushes, use rulesets, and assign automatic reviewers with a CODEOWNERS file.

Issues, Projects and Discussions

  1. 15 Issues: Tracking Work on GitHub Use GitHub Issues to track bugs, tasks and ideas: write a useful issue, mention people, assign work, use task lists and sub-issues, link pull requests and search with filters.
  2. 16 Labels, Milestones and Issue Templates Organize issues with labels and milestones, then guide reporters with issue templates and YAML issue forms, a config file for contact links and a pull request template.
  3. 17 GitHub Projects: Tables, Boards and Roadmaps Plan and track work with GitHub Projects: create a project, add issues and pull requests, use custom fields, switch between table, board and roadmap views, group, filter and automate.
  4. 18 Discussions, Wikis and Community Features Know where each conversation belongs: GitHub Discussions for questions and ideas, issues for work, wikis for docs, plus stars, watching, sponsors and community moderation tools.

GitHub Actions

  1. 19 GitHub Actions: Your First Workflow Write your first GitHub Actions workflow: the YAML file, events that trigger it, jobs, steps and where to read the logs. Includes a trigger matcher you can run.
  2. 20 Jobs, Steps, Runners and Matrices Understand how GitHub Actions jobs, steps and runners fit together: needs, outputs, conditions, timeouts, concurrency and the build matrix, with a matrix expander to try.
  3. 21 Secrets, Variables and Expressions Store credentials safely with Actions secrets, share settings with variables, and use contexts and ${{ }} expressions, GITHUB_TOKEN and OIDC. With a runnable expression stand-in.
  4. 22 Caching, Artifacts, Reusable Workflows, Environments Speed up and organize GitHub Actions: dependency caching with keys, artifacts between jobs, reusable workflows, composite actions and deployment environments with approvals.

Security Features

  1. 23 Dependabot and Dependency Security Use the dependency graph, Dependabot alerts, security updates and version updates to keep dependencies safe. Configure dependabot.yml and try a version-range checker.
  2. 24 Code Scanning and Secret Scanning Find bugs and leaked credentials automatically: CodeQL code scanning, alerts on pull requests, secret scanning and push protection. Try a runnable secret-detector stand-in.
  3. 25 Security Policy, Advisories and Supply-Chain Safety Publish a SECURITY.md, handle private vulnerability reports and advisories, and harden your supply chain: pinned actions, minimal token permissions, SBOMs and attestations.

Pages, Packages and Releases

  1. 26 GitHub Pages: Hosting a Website Publish a static site with GitHub Pages: user, organization and project sites, branch or Actions publishing, custom domains with HTTPS, Jekyll basics and limits. Includes a URL calculator.
  2. 27 GitHub Packages and Container Registry Publish and install packages with GitHub Packages: npm, Maven and NuGet registries and the Container registry ghcr.io. Authentication, visibility, and a publish workflow.
  3. 28 Releases, Tags and Semantic Versioning Ship versions with GitHub Releases: Git tags, semantic versioning, release notes and automatically generated changelogs, assets and pre-releases, with a version-bump calculator.

Administration and API

  1. 29 Organizations, Teams, Roles and CODEOWNERS Manage who can do what on GitHub: organizations, teams, repository roles, outside collaborators, custom roles and CODEOWNERS review rules, with a CODEOWNERS matcher you can run.
  2. 30 Branch Protection and Rulesets Protect important branches and tags with branch protection rules and repository rulesets: required reviews, status checks, signed commits, merge queue and bypass lists.
  3. 31 The GitHub API, CLI and Webhooks Automate GitHub: call the REST and GraphQL APIs, authenticate with tokens and Apps, use the gh CLI, handle pagination and rate limits, and receive and verify webhooks.

Projects and Practice

  1. 32 Project: A Complete CI Pipeline Build a complete continuous-integration pipeline for a Node project with GitHub Actions: lint, test matrix, caching, coverage artifacts, a required gate job and a runnable plan checker.
  2. 33 Project: Set Up an Open-Source Repository Turn a bare repository into a welcoming open-source project: README, license, CONTRIBUTING, code of conduct, issue and PR templates, labels, security policy and a health checker.
  3. 34 Project: Automated Release Pipeline Build an automated release pipeline: tag a version, verify it, build artifacts, publish to npm and ghcr.io with provenance, create release notes from labels and require approval.
  4. 35 Practice: GitHub Scenarios and Decisions Test what you learned with realistic GitHub scenarios: choose the right feature for security, automation, releases and administration problems, with answers and a self-scoring drill.
  5. 36 Practice: Troubleshooting GitHub Actions Workflows Diagnose broken GitHub Actions workflows: invalid YAML, workflows that never start, permission errors, missing secrets, cache and artifact problems, stuck required checks, with a log diagnoser.