Git & GitHub Quiz 2 Codingnest

Git & GitHub Quiz 2 Codingnest

Professional Development

12 Qs

quiz-placeholder

Similar activities

Fullstack Intro, Terminal dan Git

Fullstack Intro, Terminal dan Git

Professional Development

10 Qs

git and github

git and github

University - Professional Development

10 Qs

PHP Tours Meetup #16 (Gitkraken + API Platform)

PHP Tours Meetup #16 (Gitkraken + API Platform)

University - Professional Development

10 Qs

Mastering Fundamentals

Mastering Fundamentals

Professional Development

15 Qs

2.0 - Git Basics

2.0 - Git Basics

Professional Development

10 Qs

Git & GitHub Quiz

Git & GitHub Quiz

Professional Development

15 Qs

git quiz 2

git quiz 2

Professional Development

10 Qs

git and github

git and github

Professional Development

13 Qs

Git & GitHub Quiz 2 Codingnest

Git & GitHub Quiz 2 Codingnest

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Coding Nest

Used 2+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to initialize a new Git repository?

git start

git new

git create

git init

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to stage all changes in the working directory for the next commit?

git add .

git push origin master

git stage .

git commit -m 'message'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to create a new branch in Git?

git checkout -b

git commit -m

git branch

git add

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you clone a repository from GitHub to your local machine?

git pull

git commit

git add

git clone

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to view the commit history in Git?

git status

git history

git show

git log

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of 'git pull' command?

To delete all local changes and update the remote repository

To fetch and download content from a remote repository and immediately update the local repository to match that content.

To merge changes from the local repository to the remote repository

To create a new branch in the local repository

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the command to discard changes in the working directory in Git?

git commit -m 'Discard changes'

git checkout -- .

git revert HEAD

git reset --hard

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?