wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Git & GitHub Quiz

Total questions: 15

Worksheet time: 5mins

Name
Class
Date
1.
A local repository is..
a)
On your computer
b)
Online
2.
A remote repository is..
a)
On your computer
b)
Online
3.

Are Git and GitHub the same thing?

a)

Yes

b)

No

4.

Which of these terms best describes GitHub?

a)

an issue tracking system

b)

a web-based repository hosting service

c)

a distributed version control system

d)

an Integrated Development Environment

5.

What is the term for something on GitHub that holds a collection of all files related to one particular project (similar to a folder or package)?

a)

repo

b)

branch

c)

issue

d)

git

6.

Which command fetches and downloads content from a remote repository and immediately updates the local repository to match that content?

a)

push

b)

pull

c)

take

d)

commit

7.

Which command is the opposite of git clone, that uploads your changes and code back to GitHub instead of downloading your code from GitHub?

a)

push

b)

pull

c)

add

d)

status

8.

Which command is run to check the state of your local git repository since your last commit?

a)

check

b)

status

c)

commit

d)

diff

9.

Which command saves your changes to a repository?

a)

init

b)

status

c)

commit

d)

save

10.

How do you check the state of your local git repository since your last commit?

a)

git commit

b)

git status

c)

git check

d)

git diff

11.

5. How do you supply a commit message to a commit?

a)

git message "I'm coding!"

b)

git commit "I'm coding!"

c)

git commit -m "I'm coding!"

d)

git add "I'm coding!"

12.

6. What's the git command that downloads your repository from GitHub to your computer?

a)

git fork

b)

git commit

c)

git clone

d)

git push

13.

Which is the correct order to submit your changes from the working directory all the way to the remote repository?

a)

git add, git commit, git push

b)

git push, git add, git commit

c)

git add, git push, git commit

d)

git commit, git add, git push

14.

To get the latest changes from your remote repository, the git command is?

a)

git pull down

b)

git reset

c)

git refresh

d)

git pull origin main

15.

After you initialize a new git repository and create a file named git-quiz.html, which of the following commands will not work if you run it?

a)

git add git-quiz.html

b)

git commit -m "git quiz HTML file added"

c)

git add

d)

git status