wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

GIT

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which of the below is a source code

management tool?

a)

Jenkins

b)

Maven

c)

Git

d)

Hudson

2.

Which one of the Source Code Management tool is distributed

a)

Tortoise SVN

b)

Git

c)

BitBukcet

d)

All of them

3.

Git is

a)

Open Source Project

b)

Distributed Version Control System

c)

secured by SHA1

d)

All of them

4.

git init is used to

a)

Creates a new local repo

b)

Adds configuration

c)

remote pull the central pull

d)

synchronize local repo with central repo

5.

git commit command use to

a)

push changes from local repo to central repo

b)

stage changes

c)

push changes from staging area to local repo

d)

all of them

6.

git add command is used as

a)

staging command

b)

push command for central repo

c)

add command for local repo

d)

All of them

7.

git commit -m < ? >, ? is for

a)

file name to be commited

b)

comment

c)

repo url

d)

None

8.

git branch -b <branchName>, -b indicates

a)

branch name you want to jump to

b)

branch needs to get created

c)

branch needs to be fetched from central repo

d)

nothing

9.

Right command to stage all files

a)

git add

b)

git add *

c)

git add <fileName>

d)

None

10.

command use to connect remote repo with local repo

a)

git remote add

b)

git init

c)

git connect repo

d)

git configure

11.

.......... is equivalent to fetch and merge

a)

pull

b)

syncronize

c)

push

d)

fetch

12.

............. command is to create git branch

a)

git checkout <branchName>

b)

git create-branch <branchName>

c)

git branch <branchName>

d)

git -b <branchName>

13.

git fetch will pull code from remote and merge it with local development work

a)

True

b)

False

14.

Correct command to push your changes to X branch

a)

git push origin master X

b)

git push origin X

c)

git push branch X

d)

git push X

15.

Which one of them is incorrect command

a)

git add Test.txt

b)

git pull origin master

c)

git push origin master

d)

None