Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Sharing code with git push, pull and clone worksheet is part of the VCE Software Development - U4O1 - development and evaluation journey. Print it as a booklet?
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 clone https://github.com/sam/quiz.git | AUploads your new commits from your computer to the main branch on the remote | |
| 2git push origin main | BCopies the whole remote repository, with its history, onto your computer | |
| 3Download your teammates' latest commits and add them to your local copy | Cpush uploads your commits, it does not download. To receive a teammate's work you need git pull. | |
| 4Make a first copy of a shared project on your own computer | Dgit clone https://github.com/sam/quiz.git | |
| 5git push origin main (to get a teammate's new work) | Egit clone needs the URL of the remote repository, not the remote name and branch name. | |
| 6git clone origin main (to copy a project) | Fgit pull origin main |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
git clone, git push, git pull — clone copies a remote repository to your computer; push uploads your commits to the remote; pull downloads other people's new changes into your copy.git clone https://github.com/sam/quiz.gitgit push origin maingit pull origin maingit commit -m "Fix score bug"
git pull origin main
git push origin maingit push origin main