wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Git quizz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What HEAD contains?

a)

It contains all the data related to the current list of tracked files

b)

It contains the identifier of the current commit or a reference to a branch HEAD

c)

It contains all kind of metadata used to understand the repository structure

d)

It keeps important configuration elements, like the name of the suer

2.

What "staging" means?

a)

It is the current area of work, with the files of the project

b)

It is the set of files that will form part of the next commit

c)

It is current position in the history log for the current branch

d)

It is the content of the .git/ directory, with the information collected by git

3.

Why applying a `git commit` command directly after a `git init` will fail?

a)

Because there is no file to commit

b)

Because commit requires files to be staged

c)

Because you first need to checkout the branch

d)

Because you always need to configure the user name and email for each repo

4.

What command will help you to understand the evolution of the code in the repo?

a)

view

b)

history

c)

log

d)

list

5.

What command will you choose if you want to start experimenting in refactoring your code?

a)

clone

b)

checkout -b

c)

checkout

d)

split

6.

What command will mix the content of two branches in the local repo?

a)

merge

b)

mix

c)

pull

d)

push

7.

What command will mix the content of two branches in separate repos? (choose 2)

a)

merge

b)

mix

c)

pull

d)

push

8.

What command will you use to travel through the repo history?

a)

history

b)

log

c)

checkout

d)

checkout -b

9.

What is the best practice to collaborate in a two-persons project?

a)

Create a repo with two users

b)

Create two different repos and merge

c)

Create three repos, two of them having the third as origin

d)

Create five repos, one of them with git init --bare

10.

What is NOT git?

a)

A database

b)

A collaboration tool

c)

An intelligent text merging application

d)

A backup mechanism