A working copy of version controlled code which doesn't include the whole repository.
Questions tagged [sparse-checkout]
124 questions
1
vote
0 answers
How to clone a specific subdirectory as root in Git?
I have a library Git repo:
Library Root
┗ sample
┗ lib
┗ README.md
I want to clone only lib directory at the repo to my project like below:
Project Root
┗ app
┗ lib // Cloned from the library repo
┗ some files
I know about the sparse…

BoxResin
- 11
- 2
1
vote
2 answers
git: lost my working directory after sparse-checkout, pull, merge conflict
I have lost all project data in git from all branches and I'm unable to recover it.
I created three branches: 'master', 'distribution' and 'remoteerp' (All with same code and just backup) and checked-out to remoteerp, then I configured the sparse…

Fakhar Anwar
- 295
- 1
- 3
- 20
1
vote
1 answer
How to do an arbitrarily structured sparse checkout
I have a project with a directory structure like this:
project
|--source
|--fgh
|--...
|--ijk
`--tests
|--abc
|--cde
|--...
|--utils
I want to checkout the source and tests/utils directories (and everything inside recursively).…

Kamil
- 506
- 4
- 9
- 21
1
vote
2 answers
SVN - Sparse Checkout Files of Certain Type -or- Matching Certain Pattern
I am working with a massive SVN repository -- which is made up of hundreds of directories (all at varying depths), and thousands of files (all of varying types). I need to make bulk updates to a couple hundred JavaScript files contained in this…

Jake
- 497
- 1
- 6
- 16
1
vote
1 answer
Git checkout a subdirectory without having the full repo locally
what is the best solution to solve this problem. We have a big repo. Due to security restriction people are not allowed to have copies of files on mobile workstations like laptops. But there are folders within the repo that are excluded from this…

corona-extra
- 13
- 4
1
vote
1 answer
Alternatives to "sparse checkout" in Git
In my job I work with Perforce, and I really like the way that you can have as much code as you want in your depot and developers need only specify certain subdirectories in a client and only that subset is downloaded to the local area.
From what I…

Doddy
- 1,311
- 1
- 17
- 31
1
vote
0 answers
sparse checkouts in jenkins
I'm using the Git Plugin and using the sparse checkout feature, I get the following error:
Command "git read-tree -mu HEAD" returned status code 128:
stdout:
stderr: fatal: Not a valid object name HEAD
I am using GIT version 1.8

Chris Hansen
- 7,813
- 15
- 81
- 165
1
vote
0 answers
Saving information regarding a sparse checkout in GitHub
I have a sparse checkout folder in a project stored in /root. Its checking out the folder https://github.com/tastejs/todomvc/tree/master/examples/angularjs
/root
/.git
/todoMVCDemos
/angular
/examples/angularjs
/.git
I done this…

Nikos
- 7,295
- 7
- 52
- 88
1
vote
1 answer
is it possible not to have extra subdirectory when using Git - submodule - sparse-checkout?
I want to mimic behavior like svn:externals: I have a master project and I have some "common" code in another repository. With SVN I would do:
svn co /src common
and my folder structure would be:
repo/common/*.cpp
Now with git + submodule +…

Chris Maes
- 35,025
- 12
- 111
- 136
1
vote
2 answers
Jenkins and Git info/sparse-checkout
I have very large repository in Git and I have created a job in Jenkins that checks out just one sub-folder from the project following this steps Jenkins and Git sparse checkouts.
The problem is that when i or some of my colleagues Wipe Out Current…

user3198761
- 11
- 1
- 4
1
vote
1 answer
Check out file in multiple locations within the same repo similar to SVN externals
I've ported a SVN repo to GIT, but previously I have an svn:external file and it's not recognized in GIT. Is it possible to do external files like SVN where you have a single source of a file, but checked-out into other directories of the same…

calebo
- 3,312
- 10
- 44
- 66
1
vote
1 answer
Git submodule configuration in version control
I'm working on storing my dot files in Git, and I've run into a bit of a snag. I want to include a sparse checkout of part of the Git repository (contrib/completion/*.bash) as a submodule. I can get this working, but after committing my changes to…

bshacklett
- 1,802
- 5
- 23
- 45
1
vote
1 answer
Updating repository after Checkout with Empty depth
I`m using SharpSVN.
How can I split Checkout method logic into two steps:
Create an empty svn folder
Update to HEAD revision
Here is how do I do the first step with SvnDepth.Empty argument
var args = new SvnCheckOutArgs() {Depth =…

steavy
- 1,483
- 6
- 19
- 42
1
vote
2 answers
Too Many Directories In Working Copy After Git Sparse Checkout
We have a git repo (remote is hosted at github - lets call it the Clients repo) with 210+ directories in the root. We have 210+ windows servers that each need one of those root directories, and don't really need the others.
So we log into one of the…

bubba
- 3,839
- 21
- 25
1
vote
1 answer
git sparsecheckout - how to pull into a different directory
I'm using pootle to allow people to translate the .po files in a PHP Yii project.
Pootle can pull and push translations once a translator has updated the .po file.
Separately we have developers working on the site, who may also update the…

Dan Straw
- 221
- 2
- 4