Git & GitHub Quiz 2 Codingnest

Git & GitHub Quiz 2 Codingnest

Professional Development

12 Qs

quiz-placeholder

Similar activities

Git & GitHub Workshop Quiz

Git & GitHub Workshop Quiz

Professional Development

11 Qs

GIT - CONTROL DE VERSIONES

GIT - CONTROL DE VERSIONES

Professional Development

16 Qs

Git Komutlar ve Detaylar

Git Komutlar ve Detaylar

Professional Development

10 Qs

Administrasi Infrastruktur Jaringan XI

Administrasi Infrastruktur Jaringan XI

Professional Development

9 Qs

Nuevo modelo de contribución: Sesión 1

Nuevo modelo de contribución: Sesión 1

Professional Development

12 Qs

CloudBinary_Git_Commands_Quiz

CloudBinary_Git_Commands_Quiz

Professional Development

15 Qs

CODE-P1

CODE-P1

Professional Development

10 Qs

GİTLAB VE İŞ AKIŞ YÖNETİMİ

GİTLAB VE İŞ AKIŞ YÖNETİMİ

Professional Development

15 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?