What is the command to initialize a new Git repository?
Git & GitHub Quiz 2 Codingnest

Quiz
•
Computers
•
Professional Development
•
Hard
Coding Nest
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
16 questions
Linux Basics

Quiz
•
Professional Development
10 questions
Git Quiz

Quiz
•
Professional Development
15 questions
Chapter 2 Binar SYNRGY 6

Quiz
•
Professional Development
11 questions
Git - Github - GitHub Pages

Quiz
•
Professional Development
14 questions
Ingenio - Full Stack Course - First Quiz

Quiz
•
Professional Development
15 questions
Fellowship program 2021

Quiz
•
University - Professi...
10 questions
Git & Github

Quiz
•
Professional Development
9 questions
Git & GitHub Fundamentals

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade