Mastering Git Commands

Mastering Git Commands

12th Grade

15 Qs

quiz-placeholder

Similar activities

Round 4 Clash of Coders

Round 4 Clash of Coders

12th Grade

20 Qs

Quiz - Version Control with Git and GitHub

Quiz - Version Control with Git and GitHub

University

10 Qs

GitHub Jan12

GitHub Jan12

11th Grade - University

10 Qs

GitThat30Bro

GitThat30Bro

University

15 Qs

Git & GitHub

Git & GitHub

University

10 Qs

GitHub

GitHub

University

10 Qs

Linux - Unit 6 Quiz

Linux - Unit 6 Quiz

9th - 12th Grade

13 Qs

Github Quiz

Github Quiz

University

10 Qs

Mastering Git Commands

Mastering Git Commands

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Forcia Batoctoy

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to initialize a new Git repository?

git create

git newrepo

git start

git init

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check the status of your Git repository?

Use the command 'git status'.

Type 'git log' for repository status.

Run 'git info' to see the status.

Use the command 'git check'.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to stage changes for a commit?

git status

git add

git commit

git push

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Zoe is working on a project and needs to create a new branch in Git to add a new feature. What is the command she should use?

git create

git new-branch

git checkout -b

git branch

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Avery is working on a project in Git and needs to switch to a different branch to implement a new feature. How does she do that?

git switch-branch

git checkout or git switch

git move

git branch

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command merges changes from one branch into another?

git sync

git merge

git join

git combine

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you view the commit history in Git?

Use the command 'git log'.

View the history in the Git GUI.

Run 'git commit -m' to see history.

Use the command 'git status'.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?