Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GitThat30Bro

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Git is a free and open source distributed version control system

a)

True

b)

False

2.

Which of the following is NOT a benefit of using a version control system (VCS)?

a)

Documenting changes

b)

Having errors automatically pointed out

c)

Automatically creating a backup of your work

d)

Keeping file names and hierarchies consistent and organized

3.

Which of the following is the correct way to initialize a Git repository?

a)

initialize git

b)

git initialize

c)

git init

d)

init git

4.

We can check the current state of the files in a Git repository with the command “git status.”

a)

True

b)

False

5.

Which command do we use to tell Git we want to commit the changes in the file cics.py?

a)

git add changes cics.py

b)

add git changes cics.py

c)

git add cics.py

d)

add git cics.py

6.

Which command do we use to tell Git we want to commit the changes in ALL the modified files.

a)

git add *

b)

git add -A

c)

git add -all

d)

git add .

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 -m

b)

git commit

c)

commit git message

d)

git m commit

8.

The command git clone https://github.com/my-git-repository does what?

a)

Pushes a copy of your local repository to GitHub

b)

Creates a copy of your local repository on your local machine

c)

Creates a copy of the remote repository “my-git-repository” on your local machine

d)

Creates a connection between your local repository and a remote repository

9.

The correct way to connect a local repository to a remote repository is

git remote add origin [URL]

a)

True

b)

False

10.

Which two configuration properties does the tool expect to be configured after installing Git and prior to issuing the first commit?

a)

email address and password

b)

username and email address

c)

username and IP address

d)

username and password

11.

Which of the following commands is used in switching between branches?

a)

git branch

b)

git merge

c)

git switch

d)

git checkout

12.

Git command use to check the created, modified, and deleted files before commit.

a)

git show

b)

git log

c)

git status

d)

git check

13.

These are pointers to a snapshot of your changes.

a)

Branches

b)

Versions

c)

Changes

d)

Commits

14.

It is a good habit to PULL first to check for changes before PUSH.

a)

True

b)

False

15.

Git is a helpful tool in software development projects.

a)

True

b)

False