
Data and engineering
Git and GitHub
Commits, branches, pull requests and automation, with examples from data projects.
- units
- 8
- lessons
- 23
- minutes
- 120
- exercises
- 138
The first unit is free, no credit card required. The other 7 unlock when you buy the course or go Pro. Single course: $12.99, one-time payment.
What's in the course.
Commits, branches, pull requests and GitHub Actions.
8 units, 23 lessons, and about 120 minutes of practice, a few minutes at a time.
Version your work with commits: save, compare and understand the history.
In this unit, you'll learn to
- Create commits with add and commit
- Read the status, the diff and the log
- Ignore files with .gitignore
Lessons
- Repository and commits, unlocked6 exercises · 5 min
- Status, diff and .gitignore, unlocked6 exercises · 5 min
Work in parallel without breaking the main version, then bring it all together.
In this unit, you'll learn to
- Create and switch branches
- Merge
- Resolve conflicts
Lessons
- Creating branches, locked6 exercises · 5 min
- Merge and conflicts, locked6 exercises · 6 min
- When conflicts get tricky, locked6 exercises · 5 min
Send and receive changes, open pull requests and review your colleagues' code.
In this unit, you'll learn to
- Use clone, pull, push and fetch
- Open and review pull requests
- Link PRs to issues
Lessons
- Remote: push and pull, locked6 exercises · 5 min
- Pull requests, locked6 exercises · 5 min
- Forks, reviews, rejected pushes, locked6 exercises · 5 min
Good practice for data repositories and automated tests with GitHub Actions.
In this unit, you'll learn to
- Protect secrets and keep large data out of the repository
- Document with a README
- Automate tests with GitHub Actions
Lessons
- Good practice for data, locked6 exercises · 5 min
- GitHub Actions, locked6 exercises · 5 min
- LFS, notebooks, PBIP and hooks, locked6 exercises · 5 min
Step back, rescue lost commits and tidy the history without wiping out anyone's work.
In this unit, you'll learn to
- Choose between restore, reset and revert
- Recover work with the reflog and stash
- Clean up history with rebase and cherry-pick
Lessons
- Restore, reset or revert, locked6 exercises · 5 min
- Reflog, stash and bisect, locked6 exercises · 5 min
- Rebase and cherry-pick, locked6 exercises · 5 min
Branching strategy, versions, rules on main, code owners and work organized on GitHub.
In this unit, you'll learn to
- Choose a branching and versioning strategy
- Protect main with rulesets and CODEOWNERS
- Organize work with Issues, Projects and gh
Lessons
- Branches, messages, versions, locked6 exercises · 5 min
- Rulesets and CODEOWNERS, locked6 exercises · 5 min
- Issues, gh, Codespaces, Copilot, locked6 exercises · 5 min
Matrix, cache, artifacts, environments with approval, reuse and diagnosing a failed run.
In this unit, you'll learn to
- Build jobs with matrix, cache and artifacts
- Deploy with approval and no stored secrets
- Diagnose a failed run from its log
Lessons
- Matrix, cache and artifacts, locked6 exercises · 5 min
- Environments, OIDC and reuse, locked6 exercises · 6 min
- Debugging runs and alerts, locked6 exercises · 5 min
The data team at Serrano Coffee loses commits, gets them back and builds a workflow that holds.
In this unit, you'll learn to
- Investigate and recover lost work
- Design the rules that prevent a repeat
- Release by tag, with approval and safe rollback
Lessons
- Case: the work that vanished, locked6 exercises · 6 min
- Case: a workflow that holds, locked6 exercises · 6 min
- Case: from tag to production, locked6 exercises · 6 min
Try it for real.
Ready to version like a team? Real exercises from this course, solved step by step, exactly as they appear in the app.
138 exercises across 4 types in this course
- Pick the best answer57
- Fill in the code39
- Match22
- Put it in order20
Fill in the code. You pick the right piece from the word bank and see why the others don't fit.
Fill in the blanks to save the new query.
git report.sql git -m "Add sales query"
Correct. First git add, then git commit with the message. push, which sends to GitHub, only comes after that.
Put it in order. The steps of a process show up shuffled. You put them in the right sequence.
Put the commands in order to create the first commit and view the history.
- ·git init
- ·git add analysis.sql
- ·git commit -m "First version"
- ·git log
Correct. init creates the repository, add chooses what goes in, commit saves it and log shows the history.
Match. You link each situation to the right category, a few pairs at a time.
Match each description to the Git area.
- Where you edit the filesWorking directory
- Where the changes chosen with git add sitStaging
- Where the saved commits liveRepository
- Files that git status shows as "not staged"Working directory
Correct. add moves changes from the working directory to staging, and commit writes staging into the repository.
Practice exams for this course
This course prepares you for these exams. Try free questions before you practice in the app.





