🌱
Unit 1
Git basics
Your first repository, your first commits, and reading history
0/12
START1
Start tracking
Ask Git what's going on
Stage one file
Stage two, skip one
Your first commit
Around the loop again
Save everything at once
Sign your work
Check, then save
A second computer
Read the history
Checkpoint: a repo from scratch
🔁
Unit 2
Everyday work
Stage, commit, repeat — the loop you'll use every day
The daily loop
Two steps in one
Spot the difference
One change, one commit
Ignore the junk
Delete a file
Rename a file
Stop tracking a file
Rename the stylesheet
Spring clean
Checkpoint: a tidy day's work
☁️
Unit 3
Remote repository
Put your project on GitHub and keep it in sync
Clone a project
Share your work
See what your team did
Pull in one step
Connect your project to GitHub
Rename the default branch
Where does this push go?
Push what you just fixed
Checkpoint: publish a project
🌿
Unit 4
Branches
Work on ideas side by side
Make a branch
Hop onto the branch
Work on the side
Fix a branch name
Keep a safety copy
Two paths
Create and switch at once
Start a second idea
Visit an old commit
Branch from the past
Hop over and back
Rename before sharing
Checkpoint: side by side
🔀
Unit 5
Merging
Bring branches back together
Fast-forward
When paths meet
Merge from the right side
Tidy up
Fix a merge conflict
Keep your own version
Back out of a merge
Another easy merge
One more conflict
Abort, then do it properly
Checkpoint: finish a feature
⏪
Unit 6
Rollback
Step back from the working directory, the staging area or a commit
Throw away an edit
Throw away every edit
Oops, unstage that
Check before you commit
Unstage everything
Compare two commits
Fix a commit message
Forgot a file
Undo a commit, keep the work
Rewind completely
Undo without rewriting
Undo something older
Rescue lost work
Unstage just one
Tidy the message
Undo a commit, keep the files
Look before you undo
Rescue a deleted branch
Check the staging area first
Checkpoint: clean up the mess
🏷️
Unit 7
Tags & stash
Mark releases and park unfinished work
Tag a release
Tag the past
Move a tag you got wrong
Stash it away
Pick the right stash
Tag the hotfix
Stash, pull, carry on
Clear out old tags
Checkpoint: release day
✨
Unit 8
Rewrite history
Copy, move and tidy commits
Cherry-pick a commit
Cherry-pick by id
Straighten the line
Rebase, then hand it over
Squash commits
Take a fix with you
Squash a pair
Checkpoint: tidy before sharing
🤝
Unit 9
Working with a team
Branches on GitHub, and keeping up with everyone else
Join a teammate's branch
Publish a branch
Push again, the short way
Push rejected!
Publish another branch
Start the day with a pull
Clone the second repo
Checkpoint: a day with the team