Top "Sparse-checkout" questions

A working copy of version controlled code which doesn't include the whole repository.

How do I clone a subdirectory only of a Git repository?

I have my Git repository which, at the root, has two sub directories: /finisht /static When this was in SVN, /…

git repository subdirectory git-clone sparse-checkout
Retrieve a single file from a repository

What is the most efficient mechanism (in respect to data transferred and disk space used) to get the contents of …

git git-checkout sparse-checkout git-sparse-checkout
How to git reset --hard a subdirectory?

UPDATE²: With Git 2.23 (August 2019), there's a new command git restore that does this, see the accepted answer. UPDATE: This will …

git reset git-reset sparse-checkout
Checkout subdirectories in Git?

Is it possible to check out subdirectories of a repository in Git? Imagine I am setting up a new WordPress …

git sparse-checkout
Can you do a partial checkout with Subversion?

If I had 20 directories under trunk/ with lots of files in each and only needed 3 of those directories, would it …

svn sparse-checkout
Cloning only a subdirectory with git

I have a git repository that includes subdirectories. Example dirA/dirB. Is there any way to do a git clone …

git sparse-checkout
Jenkins and Git sparse checkouts

I have a large repository in Git. How do I create a job in Jenkins that checks out just one …

git jenkins sparse-checkout
Sparse checkout in Git 1.7.0?

With the new sparse checkout feature in Git 1.7.0, is it possible to just get the contents of a subdirectory like …

git version-control sparse-checkout
github/git Checkout Returns 'error: invalid path' on Windows

When I attempt to checkout a repository from github I get the error: error: invalid path 'configs/perl-modules/DIST.64/perl-HTML-Tree-1:5.03…

git github sparse-checkout