wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Git It Done

Total questions: 15

Worksheet time: 4mins

Name
Class
Date
1.

What is Git mainly used for?

a)

Cloud storage

b)

Version control system

c)

Code compiler

d)

Programming language

2.

Which statement correctly describes GitHub?

a)

A software installed on PC

b)

A local version control tool

c)

A cloud platform that hosts Git repositories

d)

A programming IDE

3.

Which of the following is a key difference between Git and GitHub?

a)

Git works online, GitHub works offline

b)

GitHub is a tool, Git is a website

c)

Git works offline, GitHub requires internet

d)

Both are the same

4.

What is a repository in Git?

a)

A Git command

b)

A cloud server

c)

A project folder tracked by Git

d)

A programming file

5.

Which Git command is used to create a new repository?

a)

git start

b)

git create

c)

git init

d)

git new

6.

What does git status command do?

a)

Pushes code to GitHub

b)

Creates a commit

c)

Checks current repository status

d)

Clones a repository

7.

Which command stages files before committing?

a)

git commit

b)

git push

c)

git add

d)

git pull

8.

What does git commit -m do?

a)

Uploads code to GitHub

b)

Saves a snapshot of the code

c)

Deletes files

d)

Clones repository

9.

Which command links a local repository to GitHub?

a)

git push

b)

git remote add origin

c)

git branch

d)

git pull

10.

Why is git branch -M main used?

a)

To delete a branch

b)

To create a repository

c)

To rename the current branch to main

d)

To merge branches

11.

Which command uploads code to GitHub?

a)

git upload

b)

git pull

c)

git push

d)

git add

12.

Which file is used to ignore files in Git?

a)

.env

b)

ignore.txt

c)

.gitignore

d)

config.git

13.

If a file was already committed, how do you remove it but keep it locally?

a)

git delete file

b)

git rm file

c)

git rm --cached file

d)

git remove local

14.

Which command removes a file from the repository?

a)

git remove

b)

git rm filename

c)

git delete filename

d)

git clear

15.

What is the purpose of a Pull Request?

a)

To delete a repository

b)

To download code

c)

To request merging changes into main code

d)

To clone a repository