What command is used to create a new branch in Git?
Git Quiz

Quiz
•
Computers
•
Professional Development
•
Hard
Claudiu Haidu
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
git commit <branch_name>
git push <branch_name>
git branch <branch_name>
git checkout <branch_name>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to stage changes for commit in Git?
git push
git stage
git add
git commit
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to view the commit history in Git?
git log
git history
git status
git diff
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to merge branches in Git?
git commit
git merge
git checkout
git pull
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the command "git clone"?
To create a new repository
To create a new branch
To make a copy of an existing repository
To delete a repository
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Git command to discard changes in a specific file?
git reset
git revert
git checkout
git discard
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you undo the last commit in Git?
git undo
git revert HEAD
git reset --hard HEAD^
git rollback
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Git & GitHub Quiz 2 Codingnest

Quiz
•
Professional Development
13 questions
git and github

Quiz
•
Professional Development
10 questions
git basics

Quiz
•
Professional Development
10 questions
Git quizz

Quiz
•
Professional Development
8 questions
Git intro

Quiz
•
Professional Development
10 questions
edX Vanderbilt - Day 1 Review

Quiz
•
Professional Development
15 questions
GİTHUB, İŞ AKIŞ YÖNETİMİ

Quiz
•
Professional Development
15 questions
Git Basic

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