wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Git-it?

Total questions: 18

Worksheet time: 3mins

Name
Class
Date
1.

What is the command to get the installed version of Git?

a)

gitVersion

b)

git --version

c)

git help version

d)

git -v

2.

Who is attributed with inventing Git?

a)

Yukihiro Matsumoto

b)

Brendan Eich

c)

Linus Torvalds

d)

Radia Perlman

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.

Which option should you use to set the default user name for every repository on your computer?

a)

--global

b)

No need to specify

c)

--all

d)

--A

5.

What is the default text editor for the Bash shell with a Windows-based Git install?

a)

Emacs

b)

Vim

c)

Notepad++

d)

Bash

6.

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

7.

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

a)

git add git-quiz.html

b)

git status

c)

git add .

d)

git commit -m "git quiz web file added"

8.

Which vendor acquired GitHub for $7.5 billion in June 2018?

a)

Oracle

b)

Microsoft

c)

IBM

d)

Google

9.

Git automatically adds new files to the repository and starts tracking them.

a)

True

b)

False

10.

Git commit history is automatically deleted:

a)

Every 2 weeks

b)

Every year

c)

Commit history is never automatically deleted

d)

Every month

11.

What is the command to commit with the message "New email":

a)

git commit -m "New email"

b)

git commit -log "New email"

c)

git commit -mess "New email"

d)

git commit message "New email"

12.

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

a)

git history

b)

git commits

c)

git log

d)

git --full-log

13.

What is the command to create a new branch named "new-email"?

a)

git newBranch "new-email"

b)

git add branch "new-email"

c)

git branch new "new-email"

d)

git branch new-email

14.

What is the command to move to the branch named "new-email"?

a)

git branch -move new-email

b)

git branch new-email

c)

git checkout new-email

d)

git checkout branch new-email

15.

What is the option, when moving to a branch, to create the branch it if it does not exist?

a)

-newbranch

b)

-new

c)

-b

d)

-all

16.

What is the command to merge the current branch with the branch "new-email"?

a)

git commit -merge new-email

b)

git add new-email

c)

git merge new-email

17.

What is the command to delete the branch "new-email"

a)

git gone new-email

b)

git delete new-email

c)

git branch -d new-email

d)

git delete branch new-email

18.

Which file can you configure to ensure that certain file types are never committed to the local Git repository?

a)

ignore.git

b)

.gitignore

c)

gitignore.txt

d)

git.ignore