wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Got Git?

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

How do you supply a commit message to a commit?

a)

git message "I'm coding"

b)

git add "I'm coding"

c)

git commit "I'm coding"

d)

git commit -m "I'm coding"

2.

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

a)

Oracle

b)

Microsoft

c)

IBM

d)

Google

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.

After you add a file, it becomes

a)

Committed

b)

Modified

c)

Staged

d)

Untracked

5.

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

a)

git check

b)

git status

c)

git commit

d)

git diff

6.

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

a)

Ignore.git

b)

.gitignore

c)

gitignore.txt

d)

git.ignore

7.

Who is attributed with inventing Git?

a)

Junio C. Hamano

b)

James Gosling

c)

Kohsuke Kawaguchi

d)

Linus Torvalds

8.

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

9.

Which Command is used to show limited number of commits?

a)

git fetch <remote>

b)

git log -n <limit>

c)

git config <limit>

d)

git status

10.

What command removes untracked files from your working directory.

a)

git commit

b)

git clean -f <path>

c)

git clean

d)

git reset

11.

Which programming language was used to create Git?

a)

C

b)

HTML

c)

PHP

d)

C++

12.

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

a)

Emacs

b)

Vim

c)

Notepad++

d)

Bash

13.

Which of the following is not a Git configuration scope?

a)

Local

b)

User

c)

System

d)

Global

14.

Which command is useful for getting a high-level overview of the project history?

a)

git log --oneline

b)

git reset --hard

c)

git log --author="<pattern>"

d)

git rebase <base>

15.

To make a new git branch, the git command is?

a)

git branch

b)

git -b

c)

git new branch

d)

git checkout branch