
git quiz 3
Authored by Ava H
Computers
Professional Development
Used 6+ 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
Which command would you use to force an overwrite of your local files with the master branch.
git fetch --all; git reset --hard origin/master
git pull origin master;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is true when you use the git add -A command?
All new and updated files from the working directory are staged to the index.
Only new files in the working directory are staged to the index.
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Describe what is happening given these commands:
git checkout feature-user-location
git cherry-pick {123}
The branch is switched to the feature-user-location branch, and the specified commit is applied to the branch.
a comment is being tagged for release on the feature-user-location branch.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You find that your project has a tag and branch both named push-notifications, which causes confusion when trying to print out given reference. How can you specify which branch you want to look at?
Use git show head/refs/push-notification
use git show ref/push-notifications
use git show push-notifications
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Your team leader needs a list of all commits that will be moved before you perform a rebase. Which command can you use to access that information?
git rebase -i
git rebase -log
git rebase -verbose
git rebase -all
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the operation doing given the Git commands below?
$ git bisect start
$ git bisect bad 123
$ git bisect good 234
It performs a binary search using a known bad commit and known good commit to determine which commit introduced a bug.
It marks a commit for deletion using a known bad commit and known good commit to determine which commit introduced a bug.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a situation where you have several commits for a single task, what is the most efficient way to restructure your commit history?
Squash the related commits together into a single coherent commit.
delete the task commits and recommit with a new message.
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?