Questions tagged [git-sparse-checkout]
29 questions
1
vote
1 answer
Git Sparse checkout during Azure pipelines taking ~15 minutes
We have a single repo of our source code which if downloaded is around 2.8GB. We have 4 self hosted agents and over 100 build pipelines. With that, it is not feasible to download the entire source coded for each build/agent.
The approach I gone with…

Ross
- 2,463
- 5
- 35
- 91
1
vote
1 answer
Sparse checkout but exclude or ignore files in root?
The docs for git sparse-checkout state,
By default, when running git sparse-checkout init, the root directory is added as a parent pattern. At this point, the sparse-checkout file contains the following patterns:
/*
!/*/
However, I do not want to…

Evan Carroll
- 78,363
- 46
- 261
- 468
1
vote
2 answers
Jenkins git checkout - place .git folder in another place
We make a deploy to client's folder at client's server using Jenkins via VPN of several git repos. I've set the "Check out to a sub-directory option" and "Sparse checkout".
We need to deploy only some files of one common repository (other files are…

Mikhail V.
- 75
- 8
1
vote
2 answers
git sparse checkout - can't abort merge
Using git 2.25.1
Used git sparse-checkout init/set to setup sparsecheckout.
Now I'm in situation that i need to abort merge.
Tried:
git merge --abort
Entry 'QStreams_xxx/infra/QPrism/Qpvc/gradle_pvc/gradle_pvc.iml' not uptodate.
Cannot update…

Boaz Nahum
- 1,049
- 8
- 9
1
vote
3 answers
Git sparse checkout error "Entry 'path/to/file' not update. Cannot update sparse checkout"
I've just done a sparse checkout following the steps below
git clone http://location/repo.git
# create .git/info/sparse-checkout file
git config --bool core.sparsecheckout true
git read-tree -mu HEAD
Unfortunately the final step fails with the…

Olumide
- 5,397
- 10
- 55
- 104
1
vote
0 answers
Asking git to ignore a folder that other people check code into
I'm working on a huge, sprawling, corporate git repo that lots of other people check code into. There are huge folders in it that are of no interest to me at all. I don't read or write code there, and I don't need that code to work on my code.
These…

Ram Rachum
- 84,019
- 84
- 236
- 374
1
vote
1 answer
Git checkout single directory through Chef
Is there a way of doing an sparse checkout with Chef and its git resource? Or what is the best way to accomplish the equivalent of that?
As doing a sparse checkout requires modifying a file in the .git folder before doing the pull, I don't find a…

Daniel
- 21,933
- 14
- 72
- 101
1
vote
2 answers
Checkout a Specific Folder within a Git Repository
I have multiple projects in different repositories:
tools
thirdparty
shared
├──Common
├──Exceptions
multimedia
├──VolumeControl
├──VideoRenderer
android
├──Audio
For example, android depends on shared/Common, shared/Exceptions, tools,…

ssk
- 9,045
- 26
- 96
- 169
0
votes
1 answer
Jenkins Git Sparsecheckout multiple repositories
I'm trying to setup a shared library within Jenkins that would have multiple git repositories and then multiple directory paths? Is this even possible? I've looked around a bit and the example's I have seen were here SparseCheckout in Jenkinsfile…

forest0918
- 55
- 8
0
votes
0 answers
Ignore files from pulling and pushing in git?
So I have a repo random-words in there there's randomwords.py, test.bat, some other files, and then 5 large dictionaries .dic, each 20mb large.
Whenever I clone, push or pull into the repo random-words I want to ignore these .dic files. I already…

Grumpy ol' Bear
- 725
- 3
- 15
- 27
0
votes
1 answer
git sparse-checkout existing repo serially
Here is what I am doing
First sparse-check-out
git clone --depth 1 --filter=blob:none --sparse https:
cd ./
git sparse-checkout init --cone
git sparse-checkout set
I need to run something from…

shrini
- 35
- 1
- 5
0
votes
0 answers
Why can't I disable the sparse-checkout of Git?
I cloned a repository and found that it has the "SPARSE" after "master". I am not so familiar with git, so I search it in the official document, which says that I can disable it by "git sparse-checkout disable". However, I tried it and it seems that…

Patronumxie
- 1
- 2
0
votes
1 answer
How to use git sparse-checkout in 2.25 and not checkout everything
So after trying multiple tutorials, questions/answers I am still not able to get git sparse-checkout working on Windows 10 with git 2.25
Background
Our repo moved from perforce to git recently and now I am trying to get git working on Windows with…

mittal
- 915
- 10
- 29
0
votes
1 answer
Sparse-checkout in git v28.0.0?
In git 26.0.2 I was able to perform these steps:
git worktree add --no-checkout ../test_git26 git26
cd ../test_git26
git sparse-checkout init --con
git sparse-checkout set Q/
ls
This ended nicely with one directory in worktree :
Exactly same steps…

Boaz Nahum
- 1,049
- 8
- 9