wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz - Version Control with Git and GitHub

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What is Git?

a)

A version control system

b)

Another name for GitHub

c)

A remote repository platform

d)

A programming language

2.

After you install Git and prior to issuing the first commit, which two configuration properties does the tool expect to be configured?

a)

username and email address

b)

username and password

c)

email address and password

d)

username and IP address

3.

Which command should you use to initialize a new Git repository?

a)

git bash

b)

git install

c)

git init

d)

git start

4.

What is the command to get the current status of the Git repository?

a)

git –get status

b)

git status

c)

git –status

d)

git -s

5.

What is the command to view the history of commits for the repository?

a)

git log

b)

git –full-log

c)

git commits

d)

git history

6.

Which command do we use to stage the changes in the file greet.rb?

a)

git add changes greet.rb

b)

git add greet.rb

c)

git stage changes greet.rb

d)

git stage greet.rb

7.

Which command do we use to establish a new version in our Git history with a message explaining how the version has changed?

a)

git commit

b)

git m commit

c)

commit git message

d)

git commit -m

8.

What is the command to move to the branch named bug-fix?

a)

git branch -move bug-fix

b)

git checkout branch bug-fix

c)

git branch bug-fix

d)

git checkout bug-fix

9.

Which command lists all the remote “short names” known to a Git repository?

a)

all remotes

b)

git remote -v

c)

view git remotes

d)

git remote view

10.

Which of the following is the correct way to send code to a remote repo for the first time?

a)

git push

b)

git push -u origin master

c)

git send

d)

git push new