wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

git basics

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

How do you start git?

a)

$ git init

b)

$ git clone

c)

$ git start

2.

Show a list of all the commits that have been made.

a)

$ git commits

b)

$ git log

c)

$ git branch

3.

Create a branch called working

a)

$ git branch -d working

b)

$ git pull origin working

c)

$ git checkout -b working

4.

Put everything up on the remote repository.

a)

$ git commit

b)

$ git add

c)

$ git push

5.

How do you determine the current state of the project?

a)

$ git log

b)

$ git state

c)

$ git status

6.

Move all your changes since your last commit to the staging area.

a)

$ git commit .

b)

$ git add .

c)

$ git push .

7.

Switch to the branch "working"

a)

$ git checkout working

b)

$ git checkout -b working

c)

$ git checkout -d working

8.

Delete the branch "working"

a)

$ git branch -b working

b)

$ git branch -d working

c)

$ git branch delete

9.

Store the saved changes in the repository and add a message "first commit".

a)

$ git commit "first commit"

b)

$ git commit -m "first commit"

c)

$ git push "first commit"

10.

Merge the changes that were made in the "working" branch with the master branch.

a)

$ git checkout -b master

$ git merge working

b)

$ git checkout master

$ git merge working