Module 2 · Git: the 20 everyday commands · Lesson 15 of 16
Git challenge: ship a feature from start to finish
Branch, commit, push, merge, tag and clean up on your own, then take the Git test.
In this lesson · about 22 minutes
- Run the everyday Git workflow without step-by-step help
- Recall the 20 Git commands from memory
The everyday professional workflow is short: branch → commit → push → merge → tag. Sam wants a "weekly specials" page. The missions say what to achieve; you choose the commands.
Practice terminal · missions
Ship the weekly specials page
Repository: ~/website, connected to https://github.example/sam/website.git.
Missions 0 of 7
- 1Create a branch called specials and move onto it, in one command.
- 2Create specials.txt containing Iced latte, then stage and commit it.
- 3Push the specials branch to origin and link it (upstream).
- 4Switch to main and merge specials into it.
- 5Tag the release as v2.0.
- 6Push main and the tag.
- 7Delete the local specials branch.
Type a command and press Enter. Try help to list commands. Tab finishes names, ↑ repeats.
Repository ~/website · on main
1 · Working folder
The files you edit
- README.mdsaved
- index.htmlsaved
- style.csssaved
2 · Staging area
Packed for the next commit
- (nothing staged: use git add)
3 · Commit history (this computer)
Each dot is a saved snapshot. Labels are branches, tags and what you last heard from origin.
☁ Remote: origin
https://github.example/sam/website.git
- mainb644ba3Add phone number to footersame as yours
Flashcards
The 20 Git commands
0 of 20 known
Say what each one does, then flip.
Practice exam
Git commands test
12 questions, 15 minutes.
- 12 questions · 15 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Written by Noviq Academy in its own words. The practice terminal is a simulation that runs in your browser: it imitates Linux (Ubuntu-style output) and Git closely, but it is not a real computer, and real output can differ slightly. The servers, people, web addresses and GitHub addresses in the labs are made up. Linux is a trademark of Linus Torvalds; Git and GitHub belong to their owners. Read-aloud uses your device's built-in voices.