Git & GitHub Quiz 2 Codingnest
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Coding Nest
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
EAE_DataScience_S2
Quiz
•
Professional Development
15 questions
Sec+ Quiz - 3
Quiz
•
Professional Development
10 questions
ChatGPT for Work
Quiz
•
Professional Development
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
10 questions
Introduction to Computer
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
10 questions
Roblox z Lua 10-12 - II QUIZ
Quiz
•
Professional Development
14 questions
Web Basic
Quiz
•
Professional Development
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
