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 branch login-page | Agit checkout login-page | |
| 2git merge login-page | BThis is a merge conflict. Both branches changed the same line, so Git cannot choose one. The markers must be removed and one version kept before committing. | |
| 3Switch to a branch so your new commits are added to that line of development instead of main. | CCreates a new branch called login-page, a separate line of development, without changing the main branch. | |
| 4To combine a finished feature branch into main, first switch to main and then run the merge command. | Dgit checkout main git merge login-page | |
| 5git checkout main git merge main | EMerging main into itself does nothing. The name after git merge should be the feature branch whose changes you want to bring into main. | |
| 6<<<<<<< HEAD score = 10 ======= score = 20 >>>>>>> login-page | FCombines the changes from the login-page branch into the branch you are currently on, such as main. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
git branch — Creates a branch, a separate line of development that you work on safely and later combine into the main branch with git merge.git branch login-formgit checkout login-formgit checkout main
git merge login-formgit checkout main
git merge login-formCONFLICT (content): Merge conflict in app.py