
Git Quiz
Authored by Claudiu Haidu
Computers
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command is used to create a new branch in Git?
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
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?