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 "Fix login check" | APushing straight to the main branch skips peer review, so insecure or faulty code can enter the project unchecked. Work should be done on a branch and merged through a pull request. | |
| 2git merge feature-login | BCombines the changes from the feature-login branch into the branch you are currently on | |
| 3A pull request lets teammates review a branch's changes before they are merged into the main branch | CSaves a snapshot of the changes into the repository's version history with a message describing what changed | |
| 4A private repository restricts who can see and change the project's source code, which protects confidential code | DA commit without a clear message makes the repository's version history hard to read and audit. The message should describe what changed and why, e.g. "Add input validation to login form". | |
| 5git commit -m "" (committing with no message, or with a vague one like "stuff") | Egh repo create payroll-app --private | |
| 6git push origin main (pushing directly to main with no pull request or review) | Fgh pr create --base main --head feature-login |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
code repository — A central store for a project's source code and its version history, shared by a team through commits, branches, pull requests and access settings (private or public).git commit -m "Add login form"git branch feature-logingit merge feature-logingh pr create --title "Add login form"gh repo create secure-app --private