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.
- 110h4 topics
Git, properly
How Git really works, so nothing surprises you.
Show topicsNot startedExplain 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
- 27h4 topics
Collaborating on GitHub
Run a repo the way good teams do.
Show topicsNot startedPlan work with issues and a Projects board.
- Create a repo with README and license
- Write issues with templates and labels
- Plan work on a Projects board
Open small reviewable PRs and give useful reviews.
- Open a small, focused PR
- Write a clear PR description
- Leave actionable review comments
Require reviews and passing checks before merge.
- Protect main with required reviews
- Require passing status checks
- Add a CODEOWNERS file
- GitHub CLILearn visually 1h 30m
Manage PRs, issues and runs from the terminal.
- Install gh and authenticate
- Create and check out PRs from the terminal
- Watch workflow runs with gh run
Module resources:GitHub Docs ↗ - 39h4 topics
GitHub Actions fundamentals
Workflows, jobs and steps.
Show topicsNot startedWrite 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 ↗ - 415h5 topics
Advanced Actions
Reuse, extend and secure your automation.
Show topicsNot startedShare one pipeline across many repos.
- Write a reusable workflow with workflow_call
- Pass inputs and secrets to it
- Build a composite action
- Call shared workflows from other repos
Publish your own action with inputs and outputs.
- Compare JavaScript, Docker and composite actions
- Define inputs and outputs in action.yml
- Build a JavaScript action with the toolkit
- Test the action in a workflow
- Tag and publish a release
Deploy without storing cloud keys in secrets.
- Learn how OIDC tokens replace keys
- Configure a cloud trust policy
- Request id-token permission in workflows
- Deploy to the cloud with no stored secrets
Tag, build changelogs and publish packages or images on release.
- Tag releases with semantic versions
- Generate changelogs automatically
- Publish packages to GitHub Packages
- Push images to GHCR on release
Lock down GITHUB_TOKEN and scan code and dependencies.
- Set least-privilege GITHUB_TOKEN permissions
- Enable Dependabot updates and alerts
- Run CodeQL code scanning
- 55h1 topics
Project
Put it all together on a real repo.
Show topicsNot startedA repo with protected main, CI, automated releases and a deployment.
- Protect main with rules and CODEOWNERS
- Add CI tests on every pull request
- Automate releases and changelogs
- Deploy via OIDC with environment gates
- Document the pipeline in the README