Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Git and GitHub Essentials : Researchers' Club

Total questions: 11

Worksheet time: 20mins

Name
Class
Date
1.

Name and Roll Number

4 lines
2.

Which command is used to create a new local Git repository?

a)

git start

b)

git init

c)

git create

d)

git new

3.

Which statement best explains the difference between Git and GitHub?

a)

Git is a distributed version control system; GitHub is an online hosting service for Git repositories.

b)

Git is an online hosting service; GitHub is a command-line tool for Git.

c)

Git is a remote storage system; GitHub is used for local commits.

d)

Git and GitHub are the same thing.

4.

Which command stages changes for commit?

a)

git push

b)

git commit

c)

git add

d)

git merge

5.

git clone is used to:

a)

Copy a repository from GitHub to your local computer.

b)

Duplicate a branch in your local repo.

c)

Push files to a remote repo.

d)

Make a backup without commit history.

6.

Which command shows the list of commits in the current branch?

a)

git log

b)

git history

c)

git list

d)

git commit --list

7.

Which command uploads your local commits to a remote repository?

a)

git push

b)

git pull

c)

git send

d)

git upload

8.

git pull is used to:

a)

Fetch changes from a remote repo and merge them into your local branch.

b)

Upload local commits to the remote branch.

c)

Create a copy of the repository.

d)

Undo the last commit.

9.

Which of the following steps is NOT part of contributing to an open-source project?

a)

Forking the repository.

b)

Cloning your fork locally.

c)

Creating changes and committing them.

d)

Pushing directly to the original owner’s repository without permission.

10.

What’s the correct first-time push sequence for a new GitHub repository?

a)

git init → git add → git commit → git push

b)

git init → git add → git commit → git remote add origin → git push

c)

git remote add origin → git init → git add → git commit → git push

d)

git commit → git push → git add

11.

What is the default branch name for new GitHub repositories created after October 2020?

a)

main

b)

master

c)

origin

d)

default