Git quiz 1
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Easy
Ava H
Used 7+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you check your current git version?
git --v
git --version
git --option
git --current
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What command lets you create a connection between a local and remote repository?
git remote add new
git remote add origin
git remote new origin
git remote origin
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Describe what the following git commands do to commit history.
git reset --hard HEAD~5 (reset the current branch to the commit just before the last 5)
git merge --squash HEAD@{1} (HEAD@{1} is where the branch was just before the previous command. This command sets the state of the index to be as it would just after a merge from that commit)
reset the commit branch back before the last 5 commits, then squashes them into a single commit.
delete the last 5 commits
merges the last 5 commits into a new branch
reset the HEAD to the 5th commit in the repo, then merges to the master branch.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your current project has several branches: master, beta, and push-notifications. You've just finished the notification feature in the push-notification branch, and you want to commit it to beta branch. How can you accomplish this?
checkout the beta branch and run git merge push-notification
checkout the push-notifications branch and run git merge beta
checkout the master branch and run git merge beta ->push-notification
Delete the push-notification branch and it will be commited to the master branch automatically.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true when you use the following command?
git add -A
All new files are staged
Only updated files are staged.
Files are staged in alphabetical order
all new and updated files are staged.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following command print to the Terminal?
git remote -v
A list of remote repositories you are connected to
The current git version you're running
An inline editor for modifying remote repositories
The last 5 git versions you've installed.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen after run the following command?
git chechout feature-user-location
git cherry-pick {12345}
The commit is being cherry picked as the new HEAD of the commit history
A commit is being copies from the feature-user-location branch to the master branch
A commit is copied from its orignal branch over to the feature-user-location-branch
The commit is being tagged for release on the feature-user-location-branch.
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
15 questions
Unit 1 lesson 1
Quiz
•
University - Professi...
10 questions
CodeMonkey Platform Management & Resources
Quiz
•
Professional Development
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
15 questions
Computer basics for beginners
Quiz
•
Professional Development
10 questions
GUESS THAT WORD IN CYBER!
Quiz
•
Professional Development
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
Mobile Offline Sync - OutSystems
Quiz
•
Professional Development
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
