<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect2 SYSTEM "../../../dtd/dblite.dtd">

<sect2 lang="en" id="git-sparse-checkout(1)">
    <title>git-sparse-checkout(1)</title>
    <date>2024-07-02</date>
<revhistory><revision><date>2024-07-02</date></revision></revhistory>
<indexterm>
<primary>git-sparse-checkout(1)</primary>
</indexterm>
<simplesect id="git-sparse-checkout(1)__name">
<title>NAME</title>
<simpara>git-sparse-checkout - Reduce your working tree to a subset of tracked files</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__synopsis">
<title>SYNOPSIS</title>
<blockquote>
<literallayout><emphasis>git sparse-checkout</emphasis> (init | list | set | add | reapply | disable | check-rules) [&lt;options&gt;]</literallayout>
</blockquote>
</simplesect>
<simplesect id="git-sparse-checkout(1)__description">
<title>DESCRIPTION</title>
<simpara>This command is used to create sparse checkouts, which change the
working tree from having all tracked files present to only having a
subset of those files.  It can also switch which subset of files are
present, or undo and go back to having all tracked files present in
the working copy.</simpara>
<simpara>The subset of files is chosen by providing a list of directories in
cone mode (the default), or by providing a list of patterns in
non-cone mode.</simpara>
<simpara>When in a sparse-checkout, other Git commands behave a bit differently.
For example, switching branches will not update paths outside the
sparse-checkout directories/patterns, and <emphasis>git commit -a</emphasis> will not record
paths outside the sparse-checkout directories/patterns as deleted.</simpara>
<simpara>THIS COMMAND IS EXPERIMENTAL. ITS BEHAVIOR, AND THE BEHAVIOR OF OTHER
COMMANDS IN THE PRESENCE OF SPARSE-CHECKOUTS, WILL LIKELY CHANGE IN
THE FUTURE.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__commands">
<title>COMMANDS</title>
<variablelist>
<varlistentry>
<term>
<emphasis>list</emphasis>
</term>
<listitem>
<simpara>
        Describe the directories or patterns in the sparse-checkout file.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>set</emphasis>
</term>
<listitem>
<simpara>
        Enable the necessary sparse-checkout config settings
        (<emphasis>core.sparseCheckout</emphasis>, <emphasis>core.sparseCheckoutCone</emphasis>, and
        <emphasis>index.sparse</emphasis>) if they are not already set to the desired values,
        populate the sparse-checkout file from the list of arguments
        following the <emphasis>set</emphasis> subcommand, and update the working directory to
        match.
</simpara>
<simpara>To ensure that adjusting the sparse-checkout settings within a worktree
does not alter the sparse-checkout settings in other worktrees, the <emphasis>set</emphasis>
subcommand will upgrade your repository config to use worktree-specific
config if not already present. The sparsity defined by the arguments to
the <emphasis>set</emphasis> subcommand are stored in the worktree-specific sparse-checkout
file. See <xref linkend="git-worktree(1)" /> and the documentation of
<emphasis>extensions.worktreeConfig</emphasis> in <xref linkend="git-config(1)" /> for more details.</simpara>
<simpara>When the <emphasis>--stdin</emphasis> option is provided, the directories or patterns are
read from standard in as a newline-delimited list instead of from the
arguments.</simpara>
<simpara>By default, the input list is considered a list of directories, matching
the output of <emphasis>git ls-tree -d --name-only</emphasis>.  This includes interpreting
pathnames that begin with a double quote (") as C-style quoted strings.
Note that all files under the specified directories (at any depth) will
be included in the sparse checkout, as well as files that are siblings
of either the given directory or any of its ancestors (see <emphasis>CONE PATTERN
SET</emphasis> below for more details).  In the past, this was not the default,
and <emphasis>--cone</emphasis> needed to be specified or <emphasis>core.sparseCheckoutCone</emphasis> needed
to be enabled.</simpara>
<simpara>When <emphasis>--no-cone</emphasis> is passed, the input list is considered a list of
patterns.  This mode has a number of drawbacks, including not working
with some options like <emphasis>--sparse-index</emphasis>.  As explained in the
"Non-cone Problems" section below, we do not recommend using it.</simpara>
<simpara>Use the <emphasis>--[no-]sparse-index</emphasis> option to use a sparse index (the
default is to not use it).  A sparse index reduces the size of the
index to be more closely aligned with your sparse-checkout
definition. This can have significant performance advantages for
commands such as <emphasis>git status</emphasis> or <emphasis>git add</emphasis>.  This feature is still
experimental. Some commands might be slower with a sparse index until
they are properly integrated with the feature.</simpara>
<simpara><emphasis role="strong">WARNING:</emphasis> Using a sparse index requires modifying the index in a way
that is not completely understood by external tools. If you have trouble
with this compatibility, then run <emphasis>git sparse-checkout init --no-sparse-index</emphasis>
to rewrite your index to not be sparse. Older versions of Git will not
understand the sparse directory entries index extension and may fail to
interact with your repository until it is disabled.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>add</emphasis>
</term>
<listitem>
<simpara>
        Update the sparse-checkout file to include additional directories
        (in cone mode) or patterns (in non-cone mode).  By default, these
        directories or patterns are read from the command-line arguments,
        but they can be read from stdin using the <emphasis>--stdin</emphasis> option.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>reapply</emphasis>
</term>
<listitem>
<simpara>
        Reapply the sparsity pattern rules to paths in the working tree.
        Commands like merge or rebase can materialize paths to do their
        work (e.g. in order to show you a conflict), and other
        sparse-checkout commands might fail to sparsify an individual file
        (e.g. because it has unstaged changes or conflicts).  In such
        cases, it can make sense to run <emphasis>git sparse-checkout reapply</emphasis> later
        after cleaning up affected paths (e.g. resolving conflicts, undoing
        or committing changes, etc.).
</simpara>
<simpara>The <emphasis>reapply</emphasis> command can also take <emphasis>--[no-]cone</emphasis> and <emphasis>--[no-]sparse-index</emphasis>
flags, with the same meaning as the flags from the <emphasis>set</emphasis> command, in order
to change which sparsity mode you are using without needing to also respecify
all sparsity paths.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>disable</emphasis>
</term>
<listitem>
<simpara>
        Disable the <emphasis>core.sparseCheckout</emphasis> config setting, and restore the
        working directory to include all files.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>init</emphasis>
</term>
<listitem>
<simpara>
        Deprecated command that behaves like <emphasis>set</emphasis> with no specified paths.
        May be removed in the future.
</simpara>
<simpara>Historically, <emphasis>set</emphasis> did not handle all the necessary config settings,
which meant that both <emphasis>init</emphasis> and <emphasis>set</emphasis> had to be called.  Invoking
both meant the <emphasis>init</emphasis> step would first remove nearly all tracked files
(and in cone mode, ignored files too), then the <emphasis>set</emphasis> step would add
many of the tracked files (but not ignored files) back.  In addition
to the lost files, the performance and UI of this combination was
poor.</simpara>
<simpara>Also, historically, <emphasis>init</emphasis> would not actually initialize the
sparse-checkout file if it already existed.  This meant it was
possible to return to a sparse-checkout without remembering which
paths to pass to a subsequent <emphasis>set</emphasis> or <emphasis>add</emphasis> command.  However,
<emphasis>--cone</emphasis> and <emphasis>--sparse-index</emphasis> options would not be remembered across
the disable command, so the easy restore of calling a plain <emphasis>init</emphasis>
decreased in utility.</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>check-rules</emphasis>
</term>
<listitem>
<simpara>
        Check whether sparsity rules match one or more paths.
</simpara>
<simpara>By default <emphasis>check-rules</emphasis> reads a list of paths from stdin and outputs only
the ones that match the current sparsity rules. The input is expected to consist
of one path per line, matching the output of <emphasis>git ls-tree --name-only</emphasis> including
that pathnames that begin with a double quote (") are interpreted as C-style
quoted strings.</simpara>
<simpara>When called with the <emphasis>--rules-file &lt;file&gt;</emphasis> flag the input files are matched
against the sparse checkout rules found in <emphasis>&lt;file&gt;</emphasis> instead of the current ones.
The rules in the files are expected to be in the same form as accepted by <emphasis>git
sparse-checkout set --stdin</emphasis> (in particular, they must be newline-delimited).</simpara>
<simpara>By default, the rules passed to the <emphasis>--rules-file</emphasis> option are interpreted as
cone mode directories. To pass non-cone mode patterns with <emphasis>--rules-file</emphasis>,
combine the option with the <emphasis>--no-cone</emphasis> option.</simpara>
<simpara>When called with the <emphasis>-z</emphasis> flag, the format of the paths input on stdin as well
as the output paths are \0 terminated and not quoted. Note that this does not
apply to the format of the rules passed with the <emphasis>--rules-file</emphasis> option.</simpara>
</listitem>
</varlistentry>
</variablelist>
</simplesect>
<simplesect id="git-sparse-checkout(1)__examples">
<title>EXAMPLES</title>
<variablelist>
<varlistentry>
<term>
<emphasis>git sparse-checkout set MY/DIR1 SUB/DIR2</emphasis>
</term>
<listitem>
<simpara>
        Change to a sparse checkout with all files (at any depth) under
        MY/DIR1/ and SUB/DIR2/ present in the working copy (plus all
        files immediately under MY/ and SUB/ and the toplevel
        directory).  If already in a sparse checkout, change which files
        are present in the working copy to this new selection.  Note
        that this command will also delete all ignored files in any
        directory that no longer has either tracked or
        non-ignored-untracked files present.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>git sparse-checkout disable</emphasis>
</term>
<listitem>
<simpara>
        Repopulate the working directory with all files, disabling sparse
        checkouts.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>git sparse-checkout add SOME/DIR/ECTORY</emphasis>
</term>
<listitem>
<simpara>
        Add all files under SOME/DIR/ECTORY/ (at any depth) to the
        sparse checkout, as well as all files immediately under
        SOME/DIR/ and immediately under SOME/.  Must already be in a
        sparse checkout before using this command.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
<emphasis>git sparse-checkout reapply</emphasis>
</term>
<listitem>
<simpara>
        It is possible for commands to update the working tree in a
        way that does not respect the selected sparsity directories.
        This can come from tools external to Git writing files, or
        even affect Git commands because of either special cases (such
        as hitting conflicts when merging/rebasing), or because some
        commands didn't fully support sparse checkouts (e.g. the old
        <emphasis>recursive</emphasis> merge backend had only limited support).  This
        command reapplies the existing sparse directory specifications
        to make the working directory match.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</simplesect>
<simplesect id="git-sparse-checkout(1)__internals_sparse_checkout">
<title>INTERNALS -- SPARSE CHECKOUT</title>
<simpara>"Sparse checkout" allows populating the working directory sparsely.  It
uses the skip-worktree bit (see <xref linkend="git-update-index(1)" />) to tell Git
whether a file in the working directory is worth looking at. If the
skip-worktree bit is set, and the file is not present in the working tree,
then its absence is ignored. Git will avoid populating the contents of
those files, which makes a sparse checkout helpful when working in a
repository with many files, but only a few are important to the current
user.</simpara>
<simpara>The <emphasis>$GIT_DIR/info/sparse-checkout</emphasis> file is used to define the
skip-worktree reference bitmap. When Git updates the working
directory, it updates the skip-worktree bits in the index based
on this file. The files matching the patterns in the file will
appear in the working directory, and the rest will not.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__internals_non_cone_problems">
<title>INTERNALS -- NON-CONE PROBLEMS</title>
<simpara>The <emphasis>$GIT_DIR/info/sparse-checkout</emphasis> file populated by the <emphasis>set</emphasis> and
<emphasis>add</emphasis> subcommands is defined to be a bunch of patterns (one per line)
using the same syntax as <emphasis>.gitignore</emphasis> files.  In cone mode, these
patterns are restricted to matching directories (and users only ever
need supply or see directory names), while in non-cone mode any
gitignore-style pattern is permitted.  Using the full gitignore-style
patterns in non-cone mode has a number of shortcomings:</simpara>
<itemizedlist>
<listitem>
<simpara>
Fundamentally, it makes various worktree-updating processes (pull,
    merge, rebase, switch, reset, checkout, etc.) require O(N*M) pattern
    matches, where N is the number of patterns and M is the number of
    paths in the index.  This scales poorly.
</simpara>
</listitem>
<listitem>
<simpara>
Avoiding the scaling issue has to be done via limiting the number
    of patterns via specifying leading directory name or glob.
</simpara>
</listitem>
<listitem>
<simpara>
Passing globs on the command line is error-prone as users may
    forget to quote the glob, causing the shell to expand it into all
    matching files and pass them all individually along to
    sparse-checkout set/add.  While this could also be a problem with
    e.g. "git grep -- *.c", mistakes with grep/log/status appear in
    the immediate output.  With sparse-checkout, the mistake gets
    recorded at the time the sparse-checkout command is run and might
    not be problematic until the user later switches branches or rebases
    or merges, thus putting a delay between the user's error and when
    they have a chance to catch/notice it.
</simpara>
</listitem>
<listitem>
<simpara>
Related to the previous item, sparse-checkout has an <emphasis>add</emphasis>
    subcommand but no <emphasis>remove</emphasis> subcommand.  Even if a <emphasis>remove</emphasis>
    subcommand were added, undoing an accidental unquoted glob runs
    the risk of "removing too much", as it may remove entries that had
    been included before the accidental add.
</simpara>
</listitem>
<listitem>
<simpara>
Non-cone mode uses gitignore-style patterns to select what to
    <emphasis role="strong">include</emphasis> (with the exception of negated patterns), while
    .gitignore files use gitignore-style patterns to select what to
    <emphasis role="strong">exclude</emphasis> (with the exception of negated patterns).  The
    documentation on gitignore-style patterns usually does not talk in
    terms of matching or non-matching, but on what the user wants to
    "exclude".  This can cause confusion for users trying to learn how
    to specify sparse-checkout patterns to get their desired behavior.
</simpara>
</listitem>
<listitem>
<simpara>
Every other git subcommand that wants to provide "special path
    pattern matching" of some sort uses pathspecs, but non-cone mode
    for sparse-checkout uses gitignore patterns, which feels
    inconsistent.
</simpara>
</listitem>
<listitem>
<simpara>
It has edge cases where the "right" behavior is unclear.  Two examples:
</simpara>
<literallayout class="monospaced">First, two users are in a subdirectory, and the first runs
   git sparse-checkout set '/toplevel-dir/*.c'
while the second runs
   git sparse-checkout set relative-dir
Should those arguments be transliterated into
   current/subdirectory/toplevel-dir/*.c
and
   current/subdirectory/relative-dir
before inserting into the sparse-checkout file?  The user who typed
the first command is probably aware that arguments to set/add are
supposed to be patterns in non-cone mode, and probably would not be
happy with such a transliteration.  However, many gitignore-style
patterns are just paths, which might be what the user who typed the
second command was thinking, and they'd be upset if their argument
wasn't transliterated.</literallayout>
<literallayout class="monospaced">Second, what should bash-completion complete on for set/add commands
for non-cone users?  If it suggests paths, is it exacerbating the
problem above?  Also, if it suggests paths, what if the user has a
file or directory that begins with either a '!' or '#' or has a '*',
'\', '?', '[', or ']' in its name?  And if it suggests paths, will
it complete "/pro" to "/proc" (in the root filesystem) rather than to
"/progress.txt" in the current directory?  (Note that users are
likely to want to start paths with a leading '/' in non-cone mode,
for the same reason that .gitignore files often have one.)
Completing on files or directories might give nasty surprises in
all these cases.</literallayout>
</listitem>
<listitem>
<simpara>
The excessive flexibility made other extensions essentially
    impractical.  <emphasis>--sparse-index</emphasis> is likely impossible in non-cone
    mode; even if it is somehow feasible, it would have been far more
    work to implement and may have been too slow in practice.  Some
    ideas for adding coupling between partial clones and sparse
    checkouts are only practical with a more restricted set of paths
    as well.
</simpara>
</listitem>
</itemizedlist>
<simpara>For all these reasons, non-cone mode is deprecated.  Please switch to
using cone mode.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__internals_cone_mode_handling">
<title>INTERNALS -- CONE MODE HANDLING</title>
<simpara>The "cone mode", which is the default, lets you specify only what
directories to include.  For any directory specified, all paths below
that directory will be included, and any paths immediately under
leading directories (including the toplevel directory) will also be
included.  Thus, if you specified the directory
    Documentation/technical/
then your sparse checkout would contain:</simpara>
<itemizedlist>
<listitem>
<simpara>
all files in the toplevel-directory
</simpara>
</listitem>
<listitem>
<simpara>
all files immediately under Documentation/
</simpara>
</listitem>
<listitem>
<simpara>
all files at any depth under Documentation/technical/
</simpara>
</listitem>
</itemizedlist>
<simpara>Also, in cone mode, even if no directories are specified, then the
files in the toplevel directory will be included.</simpara>
<simpara>When changing the sparse-checkout patterns in cone mode, Git will inspect each
tracked directory that is not within the sparse-checkout cone to see if it
contains any untracked files. If all of those files are ignored due to the
<emphasis>.gitignore</emphasis> patterns, then the directory will be deleted. If any of the
untracked files within that directory is not ignored, then no deletions will
occur within that directory and a warning message will appear. If these files
are important, then reset your sparse-checkout definition so they are included,
use <emphasis>git add</emphasis> and <emphasis>git commit</emphasis> to store them, then remove any remaining files
manually to ensure Git can behave optimally.</simpara>
<simpara>See also the "Internals -- Cone Pattern Set" section to learn how the
directories are transformed under the hood into a subset of the
Full Pattern Set of sparse-checkout.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__internals_full_pattern_set">
<title>INTERNALS -- FULL PATTERN SET</title>
<simpara>The full pattern set allows for arbitrary pattern matches and complicated
inclusion/exclusion rules. These can result in O(N*M) pattern matches when
updating the index, where N is the number of patterns and M is the number
of paths in the index. To combat this performance issue, a more restricted
pattern set is allowed when <emphasis>core.sparseCheckoutCone</emphasis> is enabled.</simpara>
<simpara>The sparse-checkout file uses the same syntax as <emphasis>.gitignore</emphasis> files;
see <xref linkend="gitignore(5)" /> for details.  Here, though, the patterns are
usually being used to select which files to include rather than which
files to exclude.  (However, it can get a bit confusing since
gitignore-style patterns have negations defined by patterns which
begin with a <emphasis>!</emphasis>, so you can also select files to <emphasis>not</emphasis> include.)</simpara>
<simpara>For example, to select everything, and then to remove the file
<emphasis>unwanted</emphasis> (so that every file will appear in your working tree except
the file named <emphasis>unwanted</emphasis>):</simpara>
<literallayout class="monospaced">git sparse-checkout set --no-cone '/*' '!unwanted'</literallayout>
<simpara>These patterns are just placed into the
<emphasis>$GIT_DIR/info/sparse-checkout</emphasis> as-is, so the contents of that file
at this point would be</simpara>
<screen>/*
!unwanted</screen>
<simpara>See also the "Sparse Checkout" section of <xref linkend="git-read-tree(1)" /> to
learn more about the gitignore-style patterns used in sparse
checkouts.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__internals_cone_pattern_set">
<title>INTERNALS -- CONE PATTERN SET</title>
<simpara>In cone mode, only directories are accepted, but they are translated into
the same gitignore-style patterns used in the full pattern set.  We refer
to the particular patterns used in those mode as being of one of two types:</simpara>
<orderedlist numeration="arabic">
<listitem>
<simpara>
<emphasis role="strong">Recursive:</emphasis> All paths inside a directory are included.
</simpara>
</listitem>
<listitem>
<simpara>
<emphasis role="strong">Parent:</emphasis> All files immediately inside a directory are included.
</simpara>
</listitem>
</orderedlist>
<simpara>Since cone mode always includes files at the toplevel, when running
<emphasis>git sparse-checkout set</emphasis> with no directories specified, the toplevel
directory is added as a parent pattern.  At this point, the
sparse-checkout file contains the following patterns:</simpara>
<screen>/*
!/*/</screen>
<simpara>This says "include everything immediately under the toplevel
directory, but nothing at any level below that."</simpara>
<simpara>When in cone mode, the <emphasis>git sparse-checkout set</emphasis> subcommand takes a
list of directories.  The command <emphasis>git sparse-checkout set A/B/C</emphasis> sets
the directory <emphasis>A/B/C</emphasis> as a recursive pattern, the directories <emphasis>A</emphasis> and
<emphasis>A/B</emphasis> are added as parent patterns. The resulting sparse-checkout file
is now</simpara>
<screen>/*
!/*/
/A/
!/A/*/
/A/B/
!/A/B/*/
/A/B/C/</screen>
<simpara>Here, order matters, so the negative patterns are overridden by the positive
patterns that appear lower in the file.</simpara>
<simpara>Unless <emphasis>core.sparseCheckoutCone</emphasis> is explicitly set to <emphasis>false</emphasis>, Git will
parse the sparse-checkout file expecting patterns of these types. Git will
warn if the patterns do not match.  If the patterns do match the expected
format, then Git will use faster hash-based algorithms to compute inclusion
in the sparse-checkout.  If they do not match, git will behave as though
<emphasis>core.sparseCheckoutCone</emphasis> was false, regardless of its setting.</simpara>
<simpara>In the cone mode case, despite the fact that full patterns are written
to the $GIT_DIR/info/sparse-checkout file, the <emphasis>git sparse-checkout
list</emphasis> subcommand will list the directories that define the recursive
patterns. For the example sparse-checkout file above, the output is as
follows:</simpara>
<screen>$ git sparse-checkout list
A/B/C</screen>
<simpara>If <emphasis>core.ignoreCase=true</emphasis>, then the pattern-matching algorithm will use a
case-insensitive check. This corrects for case mismatched filenames in the
<emphasis>git sparse-checkout set</emphasis> command to reflect the expected cone in the working
directory.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__internals_submodules">
<title>INTERNALS -- SUBMODULES</title>
<simpara>If your repository contains one or more submodules, then submodules
are populated based on interactions with the <emphasis>git submodule</emphasis> command.
Specifically, <emphasis>git submodule init -- &lt;path&gt;</emphasis> will ensure the submodule
at <emphasis>&lt;path&gt;</emphasis> is present, while <emphasis>git submodule deinit [-f] -- &lt;path&gt;</emphasis>
will remove the files for the submodule at <emphasis>&lt;path&gt;</emphasis> (including any
untracked files, uncommitted changes, and unpushed history).  Similar
to how sparse-checkout removes files from the working tree but still
leaves entries in the index, deinitialized submodules are removed from
the working directory but still have an entry in the index.</simpara>
<simpara>Since submodules may have unpushed changes or untracked files,
removing them could result in data loss.  Thus, changing sparse
inclusion/exclusion rules will not cause an already checked out
submodule to be removed from the working copy.  Said another way, just
as <emphasis>checkout</emphasis> will not cause submodules to be automatically removed or
initialized even when switching between branches that remove or add
submodules, using <emphasis>sparse-checkout</emphasis> to reduce or expand the scope of
"interesting" files will not cause submodules to be automatically
deinitialized or initialized either.</simpara>
<simpara>Further, the above facts mean that there are multiple reasons that
"tracked" files might not be present in the working copy: sparsity
pattern application from sparse-checkout, and submodule initialization
state.  Thus, commands like <emphasis>git grep</emphasis> that work on tracked files in
the working copy may return results that are limited by either or both
of these restrictions.</simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__see_also">
<title>SEE ALSO</title>
<simpara><xref linkend="git-read-tree(1)" />
<xref linkend="gitignore(5)" /></simpara>
</simplesect>
<simplesect id="git-sparse-checkout(1)__git">
<title>GIT</title>
<simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
</simplesect>
</sect2>
