Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Git hub Pull Request

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

You have found a repository that you want to contribute to but in order to do so you need to copy the repo into your own github account. What is this process called as?

a)

fetch

b)

commit

c)

add

d)

fork

2.

You have copy of a repository added to your Github account of which you want a copy on your local system to work on it. This act of copying a repo is known as?

a)

commiting

b)

staging

c)

cloning

d)

none of the above

3.

Which of these represent the changes that you make on the repository?

a)

Branch

b)

Tree

c)

SHA tables

d)

None of the above

4.

Which of the following commands lets you change to a new branch?

a)

git switch

b)

git checkout

c)

Both of these

d)

None of these

5.

Which git command is used to stage all the changes made to a file?

a)

git commit .

b)

git stage .

c)

git add .

d)

none of the above

6.

You have made some changes on your local repository on your system and want these changes to be reflected in the remote repository in your github account . What command allows you to do that?

a)

git rebase

b)

git pull

c)

git push

d)

none of the above

7.

You have made changes in a project in your clone repository and want these changes to be pushed to the main repository. What would you do?

a)

Submit a push request

b)

Contact the developer

c)

Submit a pull request

d)

Contact the administrator

8.

Which of these is a bad github etiquette?

a)

Generating a pull request without discussing it in the issues section

b)

Generating a pull request without following the contribution guidelines

c)

Both of these

d)

None of these

9.

Which of the following scenarios can generate a merge conflict?

a)

When two separate branches have changes to the same line in a file

b)

A file is deleted in one branch but has been modified in the other.

c)

Both of these

d)

None of these

10.

Which of the following commands can be used instead of a git pull command?

a)

git fetch

git merge

b)

git add

git merge

c)

git fetch

git rebase

d)

git add

git rebase