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
14 questions
Ingenio - Full Stack Course - First Quiz

Quiz
•
Professional Development
15 questions
Fellowship program 2021

Quiz
•
University - Professi...
15 questions
GİTLAB VE İŞ AKIŞ YÖNETİMİ

Quiz
•
Professional Development
15 questions
Git & GitHub Quiz

Quiz
•
Professional Development
15 questions
CloudBinary_Git_Commands_Quiz

Quiz
•
Professional Development
13 questions
git and github

Quiz
•
Professional Development
10 questions
Git Quiz

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

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade