Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
73 views

I'm trying to customize a small part of a big repository, then have my customization pushed into a GitHub repository. I've followed sparse cloning instructions to have the first stage done. Committed ...
Hamza Hajeir's user avatar
1 vote
0 answers
47 views

I'm currently working on a project where I need to integrate a specific subfolder (folder F) from a repository (RepoA) into another repository (RepoB). I tried using git subtree and submodules, but ...
daniel guo's user avatar
0 votes
1 answer
256 views

I have a short-lived process which does a shallow clone (e.g. git clone --depth 50 <repo>) of a huge repo with ancient history. Part of the process, in some conditions, it uses runs git blame on ...
DoronG's user avatar
  • 2,683
3 votes
1 answer
2k views

Let's say I did a sparse checkout of a partial clone to not get everything from a big Git repo: git clone --filter=blob:none --sparse https://example.com/url/of/my/repo.git cd repo git sparse-checkout ...
Gabriel Devillers's user avatar
3 votes
1 answer
640 views

I use git 2.40 and I have repo folder structure like this: └── root_dir1 │ ├── dir11 │ │ └── file11 │ │ │ └── dir12 │ │ └── file12 │ │ │ └── file13 │ └── root_dir2 ...
bairog's user avatar
  • 3,539
7 votes
1 answer
3k views

As explained at How do I clone a subdirectory only of a Git repository? the best way I've found so far to download all files in a Git subdirectory only is: git clone --depth 1 --filter=blob:none --...
Ciro Santilli OurBigBook.com's user avatar
2 votes
0 answers
7k views

git version 2.25.1 I'm trying to clone only a specific directory from the git repository using the below command ; git clone --depth 1 --filter=blob:none --sparse https://github.com/gitexpert/...
itgeek's user avatar
  • 589
0 votes
0 answers
538 views

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 ...
Patronumxie's user avatar
0 votes
1 answer
738 views

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 ...
viral_mutant's user avatar
  • 1,013
8 votes
0 answers
2k views

Let's say I have a git submodule and I want to to enable sparse-checkout on it. Is it possible to do so and add that file to the repository for other people that clone? The git submodule gets added to ...
Evan Carroll's user avatar
1 vote
2 answers
1k views

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 ...
Mikhail V.'s user avatar
5 votes
1 answer
3k views

I have a git repository with a bunch of large csv in them, which I don't want to clone, so I came across git sparse-checkout and this post: https://github.blog/2020-01-17-bring-your-monorepo-down-to-...
Frode Akselsen's user avatar
15 votes
2 answers
5k views

How do I clone, fetch or sparse checkout a single file or directory or a list of files or directories from a git repository avoiding downloading the entire history or at least keeping history download ...
Richard Gomes's user avatar
1 vote
0 answers
28 views

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 ...
Ram Rachum's user avatar
  • 89.5k
8 votes
2 answers
13k views

I've been looking for a way to clone only a sub directory of one of my project. Obviously I found this answer. it is well designed and the step-by-step solution explain well how to implement this. Now ...
scharette's user avatar
  • 10.1k
15 votes
2 answers
13k views

There are a lot of articles and SO questions about sparse-checkout. Unfortunately I did not find concrete examples. I would like to get this following example work: Create a submodule cd ~ mkdir sub ...
nowox's user avatar
  • 29.7k
2 votes
0 answers
824 views

We have a submodule in our super project. That submodule uses a sparse checkout (think of the submodule as a large core library where we choose which parts are necessary for the current project). ...
Steven Sauer's user avatar
9 votes
1 answer
1k views

I am trying to sparse-checkout a subdirectory from my git repository. The repository contains multiple plugins for wordpress and I want to check them out one by one. With the below posted solutions I ...
chris9r's user avatar
  • 91
299 votes
26 answers
382k views

What is the most efficient mechanism (in respect to data transferred and disk space used) to get the contents of a single file from a remote git repository? So far I've managed to come up with: git ...
user avatar