Skip to content
All paths
Beginner → IntermediateDevOps & Cloud

Git, GitHub & GitHub Actions

Master Git beyond add-commit-push, run a GitHub repo like a professional team, then automate testing, releases and cloud deployments with GitHub Actions, including reusable workflows and your own custom actions.

What you will be able to do

  • Use rebase, cherry-pick and reflog without fear
  • Set up branch protection, reviews and CODEOWNERS
  • Write workflows with matrices, caching, environments and secrets
  • Build reusable workflows and custom actions
  • Deploy to the cloud with OIDC instead of long-lived keys

Roadmap

Bar length shows each module's share of study time.

  1. 1

    Git, properly

    How Git really works, so nothing surprises you.

    10h4 topics
    Not started
    Show topics
    • Explain what a commit, branch and HEAD actually are.

      • Learn blobs, trees and commit objects
      • Explore .git with cat-file
      • Understand branches and HEAD as pointers
    • Use feature branches and understand fast-forward vs merge commits.

      • Create and switch feature branches
      • Compare fast-forward and merge commits
      • Try squash merges
      • Delete merged branches and prune remotes
    • Rewrite local history and recover 'lost' commits.

      • Rebase a branch onto main
      • Squash commits with interactive rebase
      • Cherry-pick a fix across branches
      • Compare soft, mixed and hard reset
      • Recover lost commits with reflog
    • Resolve merge and rebase conflicts calmly.

      • Read conflict markers and diffs
      • Resolve a merge conflict
      • Resolve conflicts during a rebase
  2. 2

    Collaborating on GitHub

    Run a repo the way good teams do.

    7h4 topics
    Not started
    Show topics
    Module resources:GitHub Docs ↗
  3. 3

    GitHub Actions fundamentals

    Workflows, jobs and steps.

    9h4 topics
    Not started
    Show topics
    • Write a CI workflow that runs tests on push and pull_request.

      • Learn workflows, jobs, steps and runners
      • Trigger on push and pull_request
      • Use marketplace actions like checkout
      • Pass data between steps with outputs
      • Write a test workflow for a project
    • Test across versions and operating systems in parallel.

      • Compare GitHub-hosted and self-hosted runners
      • Add a matrix of versions and OSes
      • Use include, exclude and fail-fast
    • Gate deployments with environment protection rules.

      • Store repo and org secrets
      • Use configuration variables
      • Add environments with required reviewers
    • Cut build times with caches and pass files between jobs.

      • Cache dependencies with actions/cache
      • Use built-in setup-* caching
      • Upload and download artifacts between jobs
    Module resources:GitHub Actions docs ↗
  4. 4

    Advanced Actions

    Reuse, extend and secure your automation.

    15h5 topics
    Not started
    Show topics
  5. 5

    Project

    Put it all together on a real repo.

    5h1 topics
    Not started
    Show topics