Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1git commit -m "Add login form" | AWorking on the same branch at the same time risks overwriting each other's changes. Each developer should work on their own branch and merge later. | |
| 2git checkout -b new-menu | Bgit revert a1b2c3d | |
| 3Rolling back by restoring a previous version of the project after a change has broken the software | CThe change was not staged with git add and has no message, so the history does not clearly record what was changed or why. | |
| 4Tracking who changed what by viewing the history of recorded changes in the project | Dgit log | |
| 5git commit (no message, and nothing staged with git add) | ESaves a snapshot of the staged changes to the project history, with a message describing what changed and who made it | |
| 6Two developers both edit main.py directly on the main branch all day | FCreates a new branch called new-menu and switches to it, so a developer can work in parallel without affecting the main code |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
version control — A system that records every change to project files, so developers can see who changed what, work in parallel on branches, and roll back to an earlier version.git add main.py
git commit -m "Fix score bug"git branch feature-logingit checkout main
git merge feature-logingit log --onelinegit revert a1b2c3d