wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

github

Total questions: 13

Worksheet time: 75secs

Name
Class
Date
1.

Name the platform

a)

Github

b)

Gitlab

c)

Git

d)

Bitbucket

2.

2. Which command should you use to initialize a new git repository?

a)

Git install

b)

Git bash

c)

Git start

d)

Git init

3.

3. What is the opposite of git clone?

a)

Git push

b)

Git status

c)

Git add

d)

Git upload

4.

4. How do you check the state of your local git repository since your last commit?

a)

Git commit

b)

Git status

c)

Git check

d)

Git diff

5.

5. How do you supply a commit message to a commit?

a)

Git message "I'm coding!"

b)

Git commit "I'm coding!"

c)

Git commit -m "I'm coding!"

d)

Git add "I'm coding!"

6.

6. What's the git command that downloads your repository from GitHub to your computer?

a)

Git fork

b)

Git commit

c)

Git clone

d)

Git push

7.

7. Which is the correct usage of push command?

a)

Git push <branch> <remote>

b)

Git push <remote> <branch>

c)

Both correct

d)

None of them

8.

8. Which is the correct order to submit your changes from the working directory all the way to the remote repository?

a)

Git add, git commit, git push

b)

Git push, git add, git commit

c)

Git add, git push, git commit

d)

Git commit, git add, git push

9.

9. To get the lastest changes from your remote repository, the git command is?

a)

Git pull down

b)

Git reset

c)

Git refresh

d)

Git pull origin master

10.

10. After you initialize a new git repository and create a file named git-quiz.html, which of the following commands will not work if issued?

a)

Git add git-quiz.html

b)

Git commit -m "git quiz web file added"

c)

Git add

d)

Git status

11.

11. What command is used to create a new branch in Git?

a)

Git branch <branch-name>

b)

Git create <branch-name>

c)

Git new <branch-name>

d)

Git checkout <branch-name>

12.

12. Which command is used to merge changes from one branch into another?

a)

Git merge <branch-name>

b)

Git combine <branch-name>

c)

Git join <branch-name>

d)

Git sync <branch-name>

13.

13. What is the command to remove a file from the staging area?

a)

Git remove <file-name>

b)

Git unstage <file-name>

c)

Git delete <file-name>

d)

Git reset <file-name>