Git Fundamentals
- 118Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
118 questions
- 1A version control system records code changes over time in a database called a_____.
Hint
It stores the project's history.
Answer
repository
Explanation
A repository is the database where a version control system records changes to a project over time.
- 2A version control system lets a team inspect who changed a project, when the change occurred, and_____.
Hint
Think of the reason behind a change.
Answer
why
Explanation
Project history can show who made changes, when they were made, and why.
- 3If a change causes a problem, version control can return a project to an earlier_____.
Hint
This is a saved condition of the project.
Answer
state
Explanation
Version control makes it possible to revert a project to an earlier state.
- 4Without version control, collaborators may have to exchange code manually and then_____their changes.
Hint
They must combine their separate edits.
Answer
merge
Explanation
Version control helps avoid manually combining copies exchanged by email or other mechanisms.
- 5Version control systems are divided into centralized and_____systems.
Hint
In this kind, each team member has a project copy with history.
Answer
distributed
Explanation
The two categories described are centralized and distributed version control systems.
- 6In a centralized version control system, team members connect to a central_____to get code and share changes.
Hint
It is the shared network machine.
Answer
server
Explanation
A centralized system relies on a central server for obtaining code and sharing changes.
- 7Subversion and Microsoft Team Foundation Server are examples of_____version control systems.
Hint
They use a shared central server architecture.
Answer
centralized
Explanation
The content identifies Subversion and Microsoft Team Foundation Server as centralized systems.
- 8A central server creates a single point of_____in a centralized version control system.
Hint
If this occurs, the team may be unable to collaborate.
Answer
failure
Explanation
If the server goes offline, a centralized system may prevent collaboration and saving project snapshots.
- 9In a distributed system, every team member has a project copy along with its_____.
Hint
It records the project's previous states and changes.
Answer
history
Explanation
Distributed systems give each team member a copy of the project and its history.
- 10When a central server is offline, users of a distributed system can synchronize their work_____with one another.
Hint
They do not have to wait for the central server.
Answer
directly
Explanation
Distributed systems allow team members to synchronize work directly if the central server is offline.
- 11Git and Mercurial are examples of_____version control systems.
Hint
Each user can keep a local copy of the project history.
Answer
distributed
Explanation
The content identifies Git and Mercurial as distributed version control systems.
- 12Git is popular in part because it is free, open source, fast, and_____.
Hint
It can continue to work effectively as a project grows.
Answer
scalable
Explanation
The content gives Git's being free, open source, fast, and scalable as reasons for its popularity.
- 13Git operations such as branching and merging are described as especially_____compared with those in systems such as Subversion or TFS.
Hint
The contrast is with operations that are slow and painful.
Answer
fast
Explanation
The content contrasts Git's fast branching and merging with slower operations in some other systems.
- 14A software developer benefits from knowing Git because it supports tracking project history and_____effectively with others.
Hint
This is the teamwork activity enabled by sharing changes.
Answer
collaborating
Explanation
Git is used to track project history and collaborate effectively with other people.
- 15Git commands can be run in a terminal or command prompt using the_____.
Hint
It is a text-based interface for entering commands.
Answer
command line
Explanation
The command line is an interface for executing Git commands in a terminal or command prompt.
- 16Many code editors and IDEs provide built-in support for_____Git features.
Hint
These are the essential features rather than every possible capability.
Answer
basic
Explanation
Editors and IDEs often provide built-in support for basic Git functionality.
- 17In VS Code, the panel that exposes essential Git features is called Source_____.
Hint
It is the second word in the panel's name.
Answer
Control
Explanation
The VS Code Source Control panel offers essential Git features.
- 18GitKraken and SourceTree are examples of graphical user_____for Git.
Hint
These applications let people work with Git visually.
Answer
interfaces
Explanation
The content identifies GitKraken and SourceTree as popular Git graphical user interfaces.
- 19The course uses the command line extensively because GUI tools may support only commonly used Git_____.
Hint
These are the actions users request from Git.
Answer
commands
Explanation
GUI tools can have limitations and may not support every Git command needed for a task.
- 20A GUI tool may be unavailable when connecting remotely to a server without permission to_____software.
Hint
This is what a user may not be allowed to do on the server.
Answer
install
Explanation
Remote access and installation restrictions can make a GUI tool unavailable, while the command line remains accessible.
- 21The recommended approach is to use the right_____for the job, combining command-line and GUI options when useful.
Hint
Choose the method that best fits the task.
Answer
tool
Explanation
The content recommends choosing between command-line and GUI tools according to which is more suitable for the task.
- 22On Windows, Git Bash is short for Born Again_____.
Hint
It is a command-line environment that emulates Unix or Linux.
Answer
Shell
Explanation
Git Bash is named for the Born Again Shell and provides a Unix-like command environment on Windows.
- 23The command_____
git --versiondisplays the installed Git.Hint
It identifies the release running on the machine.
Answer
version
Explanation
Running
git --versionchecks whether Git is installed and reports its version. - 24Git configuration can be set at the system, global, and_____levels.
Hint
This level applies to the current repository.
Answer
local
Explanation
The three configuration levels are system, global, and local.
- 25System-level Git settings apply to all users of the current_____.
Hint
This is the machine on which Git is configured.
Answer
computer
Explanation
System configuration applies to all users of the current computer.
- 26Global Git settings apply to all repositories belonging to the current_____.
Hint
This is the person whose account has the settings.
Answer
user
Explanation
Global configuration applies across repositories for the current user.
- 27Local Git settings apply to the repository in the current_____.
Hint
The repository's settings are scoped to this location.
Answer
folder
Explanation
Local configuration applies to the current repository or the repository in the current folder.
- 28The configuration setting_____
user.namestores the Git user's.Hint
It identifies the author in commit metadata.
Answer
name
Explanation
The
user.namesetting configures the user's name for Git. - 29The configuration setting_____
user.emailstores the Git user's.Hint
It identifies the author's email in commit metadata.
Answer
email
Explanation
The
user.emailsetting configures the user's email address for Git. - 30On a Mac, Git may use Vim by default if a different default_____is not configured.
Hint
It is the program used to write longer commit messages.
Answer
editor
Explanation
The content notes that Git may use Vim as its default editor on a Mac unless another editor is configured.
- 31The_____
code --waitoption makes the terminal wait until the VS Code instance is.Hint
Git can continue after the editor window is no longer open.
Answer
closed
Explanation
The wait flag prevents the terminal from continuing until the VS Code instance has been closed.
- 32The command_____
git config --global -eopens the global configuration file in the default.Hint
This is the configured application for editing text.
Answer
editor
Explanation
The command opens the user's global Git configuration in the default editor.
- 33On Windows, line endings are conventionally marked with carriage return and line feed, while Mac and Linux use line_____.
Hint
It is the second part of the Unix-style line-ending name.
Answer
feed
Explanation
Windows uses carriage return plus line feed, while Mac and Linux use line feed.
- 34The setting_____
core.autocrlfcontrols how Git handles line.Hint
These mark where one line of a text file stops.
Answer
endings
Explanation
The
core.autocrlfsetting helps Git handle differences in line-ending conventions across operating systems. - 35On Windows,_____
core.autocrlfshould be set toso Git can adjust line endings when checking code in and out.Hint
This value enables Git's Windows line-ending conversion behavior.
Answer
true
Explanation
The content recommends setting
core.autocrlftotrueon Windows. - 36On Mac or Linux,_____
core.autocrlfshould be set toso Git modifies line endings when storing code in the repository.Hint
This value limits the conversion to input into the repository.
Answer
input
Explanation
The content recommends
inputon Mac or Linux; Git removes carriage returns when storing code but does not add them on checkout. - 37The_____
git config --helpcommand opens the full commandfor Git configuration.Hint
It includes detailed options and explanations.
Answer
documentation
Explanation
The help option displays the full documentation for the command.
- 38The command_____
git config -hprovides a shortof the command and its options.Hint
It is a quick refresher rather than full documentation.
Answer
summary
Explanation
The short help option gives a concise summary of the command and its options.
- 39The command_____
git initcreates a new empty Gitin the current project directory.Hint
It establishes the project's Git history area.
Answer
repository
Explanation
Initializing a project with
git initcreates a new empty repository. - 40A newly initialized repository stores its internal data in a hidden subdirectory named_____.
Hint
The directory's name begins with a dot.
Answer
.git
Explanation
Git keeps repository information and project history in the hidden
.gitsubdirectory. - 41The command_____
ls -adisplays hidden files as well as ordinary files; the-ameans.Hint
It includes entries normally hidden from a basic listing.
Answer
all
Explanation
The
-aoption is short for all and reveals hidden entries such as.git. - 42Deleting the_____
.gitdirectory removes the repository's project.Hint
This is the information Git has recorded over time.
Answer
history
Explanation
Removing
.gitdestroys the repository data, including its project history. - 43The area where proposed changes are gathered before a commit is called the staging area or the_____.
Hint
This is another Git term for the intermediate area.
Answer
index
Explanation
The staging area, also called the index, holds the proposed content for the next commit.
- 44A Git commit is like taking a_____of the project at a particular point in time.
Hint
It records the project's state rather than just a to-do list.
Answer
snapshot
Explanation
A commit records a snapshot of the project at a particular point in time.
- 45In the basic Git workflow, changes are added to the staging area, reviewed, and then_____.
Hint
This permanently records the proposed snapshot in the repository.
Answer
committed
Explanation
After staging and reviewing changes, the user commits them to the repository.
- 46The staging area allows a developer to review proposed changes before recording a project_____.
Hint
The review occurs before the next recorded state is saved.
Answer
snapshot
Explanation
The staging area provides an opportunity to inspect proposed content before committing a snapshot.
- 47If only some changes should be included in the next snapshot, the remaining changes can be_____and committed later.
Hint
They are removed from the proposed commit without necessarily discarding them.
Answer
unstaged
Explanation
Unstaging lets a developer keep changes out of the next commit and include them in a later one.
- 48After a commit, the staging area contains the same snapshot that was stored in the_____.
Hint
This is where the committed snapshot is permanently recorded.
Answer
repository
Explanation
A commit does not automatically empty the staging area; it retains the snapshot that matches the repository's latest commit.
- 49If a file is changed after it has been staged, the staging area still contains the earlier version until the change is staged_____.
Hint
A new staging operation updates the proposed snapshot.
Answer
again
Explanation
Staging takes a snapshot of a file, so edits made afterward must be staged again to update the proposed commit.
- 50Staging a deletion updates the proposed snapshot so the deleted file is removed from the_____.
Hint
This is the intermediate area representing the next commit.
Answer
staging area
Explanation
When a deleted file is staged, Git removes it from the staging area so the deletion can be committed.
- 51Each commit contains a unique identifier automatically generated by_____.
Hint
It is the version control system creating the commit.
Answer
Git
Explanation
Git generates a unique identifier for each commit.
- 52Git commits contain full project snapshots rather than storing only the_____of what changed.
Hint
This term refers to differences between versions.
Answer
deltas
Explanation
The content contrasts Git's full snapshots with systems that store only deltas or changes.
- 53Git can store full snapshots efficiently because it compresses file contents and avoids storing_____content.
Hint
A repeated copy of the same data is unnecessary.
Answer
duplicate
Explanation
Git uses compression and does not store duplicate content, helping make full snapshots space-efficient.
- 54The command_____
echoin the demonstrations is a standard Unix or Linux command for writing content to a.Hint
It can send text such as โhelloโ into one of these.
Answer
file
Explanation
The examples use
echoto write text into files; it is not a Git command. - 55Files present when a repository is first initialized are not automatically tracked; they are initially_____.
Hint
Git has not yet been instructed to include them.
Answer
untracked
Explanation
Git does not automatically track files when a repository is initialized; users must add them.
- 56The command_____
git statusreports the state of the working directory and the.Hint
It also shows which changes are prepared for the next commit.
Answer
staging area
Explanation
git statusreports files and changes in both the working directory and staging area. - 57The command_____
git add file1.txtplaces that file's current contents in the.Hint
It prepares the file for a future commit.
Answer
staging area
Explanation
git addstages the selected file by adding its current snapshot to the staging area. - 58The pattern_____
*.txtwithgit addselects files that have the.Hint
It matches text files with this suffix.
Answer
.txt extension
Explanation
The
*.txtpattern can be used to stage all files with the.txtextension. - 59The command_____
git add .adds the current directory and its contentsto the staging area.Hint
This includes files in subdirectories as well.
Answer
recursively
Explanation
The dot pattern stages the entire directory recursively, so users should check for files they do not want to include.
- 60The_____
-moption ingit commit -msupplies a short commit.Hint
It describes what the snapshot represents.
Answer
message
Explanation
The
-moption lets a user provide a commit message directly on the command line. - 61When a short commit message is insufficient, running_____
git commitwithout a message option opens the default.Hint
The user can write a longer description there.
Answer
editor
Explanation
Running
git commitwithout-mopens the configured editor for the commit message. - 62A longer commit message can place a concise description on the first line and additional context after a line_____.
Hint
It separates the summary from the detailed description.
Answer
break
Explanation
The demonstrated format uses a short description, a blank line, and then a longer explanation.
- 63Commit-message lines beginning with a hash sign in the editor are treated as_____.
Hint
Git does not include these lines as the commit message.
Answer
comments
Explanation
Lines beginning with the hash sign are comments and are ignored by Git.
- 64A commit should be large enough to represent useful work but not so large that it combines unrelated changes; it should represent a logically separate change_____.
Hint
This phrase describes a coherent group of related edits.
Answer
set
Explanation
Each commit should represent a logically separate change set rather than unrelated tasks or an excessive amount of work.
- 65A useful commit message explains the change, making the project's_____more helpful to teammates.
Hint
These messages appear alongside recorded project changes.
Answer
history
Explanation
Meaningful messages help the author and teammates understand the project history.
- 66A common commit-message convention is to use the_____tense, such as โfix the bug.โ
Hint
It describes the change as an action happening now.
Answer
present
Explanation
The content notes that many people prefer present-tense commit messages, while emphasizing consistency within a team.
- 67The_____
-aoption forgit commitincludes allfiles in the commit, allowing the staging step to be skipped.Hint
It does not refer to newly untracked files in the demonstrated usage.
Answer
modified
Explanation
The
-aoption commits modified tracked files without requiring a separategit addstep; the content recommends staging in most cases. - 68The staging area should generally be used before committing because it lets developers_____their changes first.
Hint
This is the main purpose of the intermediate step.
Answer
review
Explanation
Staging provides a chance to review the proposed changes before they are committed.
- 69Removing a file with the Unix_____
rmcommand affects the working directory, while the staged copy remains until the deletion is.Hint
Git must be told to include the removal in the next commit.
Answer
staged
Explanation
The deletion must be staged before the repository's next snapshot reflects it.
- 70The command_____
git ls-fileslists files currently in the.Hint
This is also known as the index.
Answer
staging area
Explanation
git ls-filescan be used to inspect the files in the staging area. - 71The command_____
git rm file2.txtremoves a file from both the working directory and the.Hint
It updates the proposed commit as well as the local files.
Answer
staging area
Explanation
Unlike the ordinary
rmcommand,git rmremoves the file from both the working directory and staging area. - 72Renaming a file with the Unix_____
mvcommand first creates a working-directory deletion and a new.Hint
The new path appears as an untracked item until staged.
Answer
file
Explanation
A rename made outside Git appears as a deletion plus a new untracked file, which must then be staged.
- 73The Git command for renaming or moving a tracked file while updating both the working directory and staging area is_____
git.Hint
It uses the same short name as the Unix move command.
Answer
mv
Explanation
git mvupdates the file's location in both the working directory and staging area. - 74The file used to tell Git which paths to ignore is named_____.
Hint
It is a hidden-style filename in the project root.
Answer
.gitignore
Explanation
A
.gitignorefile lists files, patterns, and directories that Git should ignore. - 75A_____
.gitignorefile should be placed in theof the project for the examples shown.Hint
It is the top-level project directory.
Answer
root
Explanation
The content places the
.gitignorefile in the root of the project. - 76An entry ending in a slash, such as_____
logs/, tells Git to ignore a.Hint
It contains files and possibly other folders.
Answer
directory
Explanation
A directory pattern ending in a slash can be used to ignore that directory and its contents.
- 77Generated binary files and logs are often ignored because they can increase repository size without providing value or needing to be_____.
Hint
These files are often specific to each developer or generated locally.
Answer
shared
Explanation
The content recommends ignoring generated or personal files such as logs and binary outputs rather than synchronizing them with teammates.
- 78Adding a path to_____
.gitignoredoes not stop Git tracking it if it has already beeninto the repository.Hint
Ignore rules do not automatically untrack existing files.
Answer
included
Explanation
A
.gitignorerule does not affect a file that Git already tracks; it must first be removed from the index. - 79The_____
--cachedoption ofgit rmremoves a path from the index while leaving it in the working.Hint
The local file remains available on disk.
Answer
directory
Explanation
git rm --cachedremoves a tracked path from the index without deleting the working copy. - 80The_____
-roption is needed when removing an entire directory because the removal must be.Hint
The operation must include the directory's contents.
Answer
recursive
Explanation
Git requires the recursive option to remove a directory and its contents from the index.
- 81Git ignore templates often exclude Java_____
.classfiles because they are generated when code is.Hint
This is the process that produces the class files.
Answer
compiled
Explanation
The content explains that Java class files are automatically generated during compilation and usually need not be stored in the repository.
- 82In short_____
git status -soutput, the left column represents the staging area and the right column represents the working.Hint
This is where local file edits happen.
Answer
directory
Explanation
Short status uses two columns: the left for staged state and the right for working-directory state.
- 83In short status output, a red_____
Min the right column indicates a modified file with changes in the working directory that are not yet.Hint
The changes have not been added to the index.
Answer
staged
Explanation
An
Min the right column indicates unstaged modifications in the working directory. - 84In short status output, two question marks indicate a file that is_____.
Hint
Git has not yet been told to include it.
Answer
untracked
Explanation
A pair of question marks marks an untracked file in the short status format.
- 85In short status output, a green_____
Ain the left column means a file has been.Hint
It is a new file prepared for the next commit.
Answer
added
Explanation
An
Ain the staging-area column indicates an added file. - 86The command_____
git diff --stagedshows changes in the staging area that are proposed for the next.Hint
This is the snapshot the staged content will enter.
Answer
commit
Explanation
The staged diff compares the staged content with the last committed snapshot.
- 87The command_____
git diffwith no arguments compares the working directory with the.Hint
It reveals changes that have not yet been staged.
Answer
staging area
Explanation
An unstaged diff shows differences between the working directory and the staging area.
- 88In a diff, lines removed from the old copy are marked with a minus sign, while lines added to the new copy are marked with a_____sign.
Hint
It is the symbol used for newly added lines.
Answer
plus
Explanation
Diff output uses minus signs for removed lines and plus signs for added lines.
- 89A diff header divides changes into chunks and provides context about which parts of a file have_____.
Hint
It describes the areas affected by edits.
Answer
changed
Explanation
Diff headers identify the sections of a file represented in each chunk.
- 90When a file is entirely new, the old-file side of its diff has no content and can show a range of_____lines.
Hint
There are no old lines for a file absent from the previous commit.
Answer
zero
Explanation
A newly added file has no old copy, so the old side of the diff has zero lines.
- 91The configuration value_____
diff.toolnames the default visual diff.Hint
It tells Git which comparison application to launch.
Answer
tool
Explanation
Setting
diff.toolassigns a name to the default program for visually comparing changes. - 92The_____
--diffargument tells VS Code to open in file-comparison.Hint
It signals how the editor should be used.
Answer
mode
Explanation
The configured command launches VS Code with the diff option to compare files.
- 93In the visual diff configuration,_____
$LOCALand$REMOTEact as placeholders for the old and new file.Hint
They represent the two versions being compared.
Answer
copies
Explanation
The configured visual tool receives the local and remote versions as the two copies to compare.
- 94Visual diff tools can compare staged changes with_____
git difftool --staged, while omitting that option compares.Hint
These are edits not yet present in the index.
Answer
unstaged changes
Explanation
Without the staged option, the visual diff tool shows working-directory changes relative to the staging area.
- 95A commit message and a concise identifier are not enough to see exact edited lines; the command used to inspect a commit's changes is_____
git.Hint
It displays commit information and a diff.
Answer
show
Explanation
git showdisplays information about a specified commit, including its changes. - 96The_____
git logcommand lists commits from thecommit toward earlier commits by default.Hint
It places the most recent entry first.
Answer
latest
Explanation
The default log ordering shows the latest commit first and earlier commits afterward.
- 97A full Git commit identifier is a 40-character_____string.
Hint
It uses digits and letters from a base-16 character set.
Answer
hexadecimal
Explanation
Git generates commit identifiers as 40-character hexadecimal strings.
- 98The_____
--onelineoption shortens commit identifiers to seven characters and displays a one-line.Hint
This is the brief commit message summary.
Answer
description
Explanation
The short log format displays abbreviated identifiers and one-line commit descriptions.
- 99The_____
--reverseoption changes the log order so thecommit appears first.Hint
It reverses the default newest-first ordering.
Answer
earliest
Explanation
Using reverse order lists commits from earliest to latest.
- 100In the log output described,_____
HEADis a reference to the current.Hint
It identifies the line of work currently checked out.
Answer
branch
Explanation
HEADtells Git which branch is currently active. - 101The main line of work is traditionally called_____
master, while some other version control systems call it the.Hint
It is another name for the primary line of development.
Answer
trunk
Explanation
The content compares Git's traditional main branch name with the term trunk used in other systems.
- 102The notation_____
HEAD~1refers to the commit one stepfrom the current commit.Hint
It selects the previous commit in the history.
Answer
back
Explanation
A tilde followed by a number moves backward that many commits from
HEAD. - 103A commit can be referenced by its identifier using only enough starting characters to make the identifier_____.
Hint
No other commit may begin with the same selected characters.
Answer
unambiguous
Explanation
A shortened commit ID works as long as it uniquely identifies the commit.
- 104The_____
git show commit:pathform displays the exact version of a file stored in that.Hint
It retrieves the file from a particular recorded snapshot.
Answer
commit
Explanation
Adding a path to
git showdisplays the file contents as stored in the specified commit. - 105The command_____
git ls-treelists files and directories stored in a commit, representing the hierarchy as a.Hint
This data structure consists of nodes and children.
Answer
tree
Explanation
A tree is a hierarchical data structure suitable for representing directories and their contents.
- 106In Git's object database, file contents are represented by_____, while directories are represented by trees.
Hint
This is the object type used for files.
Answer
blobs
Explanation
Git represents files as blob objects and directories as tree objects.
- 107Git's object database can contain commits, blobs, trees, and_____.
Hint
These can be used to label particular points or objects.
Answer
tags
Explanation
The content names commits, blobs, trees, and tags as Git object types.
- 108The command_____
git restore --staged file1.jsremoves the file's staged changes while leaving the changes in the working.Hint
The local edits remain in the file on disk.
Answer
directory
Explanation
Restoring a file with the staged option resets its index version to the last commit without discarding its working-directory edits.
- 109When restoring from the staging area, Git takes the version from the next environment, which is the last_____.
Hint
It is the recorded snapshot immediately before the staged state.
Answer
commit
Explanation
The staging area is restored from the repository's latest committed version by default.
- 110If a newly added file has no copy in the last commit, restoring it with the staged option removes it from the index and returns it to an_____state.
Hint
Git has no previously committed version to restore.
Answer
untracked
Explanation
A new file absent from the last commit is removed from the staging area and becomes untracked when restored there.
- 111Running_____
git restore file1.jswithout the staged option discards working-directory edits by restoring the version from the.Hint
This is the next environment after the working directory.
Answer
staging area
Explanation
By default, restore copies a file from the next environment; for working-directory changes, that is the staging area.
- 112The command_____
git cleanremoves untracked files, and its-foption means.Hint
Git requires this option because removing untracked files can be dangerous.
Answer
force
Explanation
The force option confirms that Git should remove untracked files that may otherwise be unrecoverable.
- 113The_____
-doption withgit cleanallows removal of untracked.Hint
These are folders rather than individual files.
Answer
directories
Explanation
The directory option extends cleaning to whole untracked directories.
- 114The combined command_____
git clean -fdforcefully removes untracked files and.Hint
The
-doption adds these to the removal operation.Answer
directories
Explanation
The
-fand-doptions are commonly combined to remove untracked files and directories. - 115Once Git tracks a file, its versions are stored in Git's database, which makes it possible to restore earlier_____.
Hint
These are previous states of the same file.
Answer
versions
Explanation
Git records tracked file content in its database, enabling restoration of previous versions.
- 116The_____
git rmcommand removes a file from both the working directory and staging area, so the deletion can be recorded in a.Hint
This saves the removal in project history.
Answer
commit
Explanation
After
git rm, committing records the file's deletion in the repository history. - 117To restore a file from the commit before the latest one,_____
git restore --sourcecan use the reference.Hint
It points one commit behind the current one.
Answer
HEAD~1
Explanation
The source option lets restore take a file from a specified commit, such as
HEAD~1. - 118The_____
--sourceoption changes the default restore behavior by specifying whichsupplies the file version.Hint
It identifies the historical snapshot to use.
Answer
commit
Explanation
By default, restore copies from the next environment;
--sourceselects a particular commit instead.

Ask anything
We've read this whole study set, so questions about it get the best answers.