What command is used to create a new branch and switch to it in a local repository?
Complete Git Guide: Understand and Master Git and GitHub - Removing a Remote Branch Using a Local Terminal

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
git switch new_branch
git branch new_branch
git create new_branch
git checkout -b new_branch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to push a local branch to a remote repository and set it to track the remote branch?
git push origin branch_name
git push -u origin branch_name
git push branch_name
git push -track origin branch_name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you verify that a new branch has been created on GitHub?
By checking the branch list in the local terminal
By using the git status command
By using the git log command
By refreshing the GitHub page
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to delete a remote branch from the local terminal?
git branch -d remote_branch
git push origin --delete remote_branch
git delete remote_branch
git remove remote_branch
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to delete a local branch forcefully?
git branch -D branch_name
git branch -f branch_name
git branch --remove branch_name
git branch -d branch_name
Similar Resources on Quizizz
3 questions
Complete Git Guide: Understand and Master Git and GitHub - Git Remote Show Origin

Interactive video
•
University
6 questions
Complete Git Guide: Understand and Master Git and GitHub - What is Origin?

Interactive video
•
University
6 questions
Complete Git Guide: Understand and Master Git and GitHub - Git Pull Two-Step Process

Interactive video
•
University
6 questions
Complete Git Guide: Understand and Master Git and GitHub - Section 10 Introduction

Interactive video
•
University
6 questions
Complete Git Guide: Understand and Master Git and GitHub - Overview of the Changes

Interactive video
•
University
6 questions
Complete Git Guide: Understand and Master Git and GitHub - Adding a New Upstream Remote Repository

Interactive video
•
University
6 questions
Complete Git Guide: Understand and Master Git and GitHub - Removing a Remote Branch Using a Local Terminal

Interactive video
•
University
2 questions
Complete Git Guide: Understand and Master Git and GitHub - Git Remote Show Origin

Interactive video
•
University
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