wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Git & GitHub

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Git is a __________

a)

Distributed version control system

b)

Centralized version control system

c)

Localized version control system

d)

All of the above

2.

Which of the following commands is used to create a new branch.

a)

git checkout <branch name>

b)

git branch <branch name>

c)

git merge <branch name>

d)

git fetch

3.

Git Pull is a combination of:

a)

branch and checkout

b)

fetch and merge

c)

add and commit

d)

fetch and commit

4.

Git ______ stage all the changes in the project directory.

a)

add

b)

status

c)

log

d)

clone

5.

A special file that is used in Git to tell which files and directories to ignore when making a commit.

a)

.gitignore

b)

ignore-files

c)

.ignore

d)

config

6.

Which command is the opposite of git clone, that uploads your changes and code back to GitHub instead of downloading your code from GitHub?

a)

push

b)

pull

c)

add

d)

status

7.

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

a)

git status

b)

git getStatus

c)

git config --status

d)

--status

8.

What command do you run to view the commit history of your repository?

a)

git log

b)

git history

c)

git past

d)

git commit -h

9.

What command lets you create a connection between a local and remote repository?

a)

git remote add new

b)

git remote new origin

c)

git remote origin

d)

git remote add origin

10.

How would you commit this with as the message "adding a new bug"?

a)

git commit -m "adding a new bug"

b)

git commit "adding a new bug"

c)

git commit .