Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
61 views

I have a folder structure in a Git Repo like the following: . └── top_level/ ├── invalid_file_names/ │ ├── <?>.txt │ └── <<>>?.txt └── valid_files/ ├── ...
ng.newbie's user avatar
  • 3,332
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
85 views

I am currently introducing a library from repository "B" to repository "A" as a submodule. The Repository "B" referred to as a submodule includes additional test code and ...
Tild's user avatar
  • 163
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
4 votes
1 answer
57 views

I'm trying to checkout a branch, but want to exclude the REAMDE.md and CHANGELOG.md files. Working: git clone [url] --no-checkout . git checkout BranchnameA git checkout BranchnameB # (any other ...
Timmiej93's user avatar
  • 1,436
0 votes
1 answer
260 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
0 votes
1 answer
340 views

I'm using git sparse-checkout to have only the files I'm interested in on disk. I'm unable to figure out how to match multiple patterns. git sparse-checkout set --no-cone "**/*.tf" Checkout ...
BeetleJuice's user avatar
  • 41.1k
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
-2 votes
1 answer
1k views

In git I want to download a folder from a Github repository and add it to a subdirectory in my repo like so: repo/folder/subfolder/ repo/folder/subfolder/clonedfolder //cloned folder from git hub But ...
hobbsie's user avatar
  • 43
3 votes
1 answer
645 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
0 votes
1 answer
532 views

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 ...
forest0918's user avatar
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
8 votes
1 answer
3k views

I'm getting the below error when i try to clone a folder "banana" from git repository using sparse filter; git clone --depth 1 --filter=blob:none --sparse https://github.com/gitexpert/...
itgeek's user avatar
  • 589
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
1 answer
404 views

Here is what I am doing First sparse-check-out git clone --depth 1 --filter=blob:none --sparse https:<repo_path> cd ./<local_repo_path> git sparse-checkout init --cone git sparse-...
shrini's user avatar
  • 35
0 votes
0 answers
541 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
4 votes
1 answer
7k views

When I'm trying to checkout to another branch from cmd: git checkout Datascience_With_Python -- this error is occuring: error: invalid path 'Datascience_With_Python/Machine Learning/Tutorials/Steps ...
rica_programmer's user avatar
0 votes
1 answer
741 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
1 vote
1 answer
3k views

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 ...
Ross's user avatar
  • 2,477
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
7 votes
1 answer
4k views

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 ...
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
0 votes
1 answer
74 views

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 ...
Boaz Nahum's user avatar
  • 1,097
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
1 vote
2 answers
889 views

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/...
Boaz Nahum's user avatar
  • 1,097
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
3 answers
3k views

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 ...
Olumide's user avatar
  • 5,915
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
2 votes
1 answer
232 views

I have a directory name "[afdsklj]" in my git repo. It seems that git sparse checkout still gives me fatal error invalid argument when it tries to create the new directory. Is there someway to have ...
N M's user avatar
  • 625
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
1 vote
1 answer
138 views

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 ....
DWilches's user avatar
  • 23.4k
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
1 answer
3k views

I am trying to understand how (and if it is possible) to copy only specific files of a specific directory from remote in Git. (not interested in continuing working on those files or getting the ...
Yannis's user avatar
  • 1,719
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
1 vote
2 answers
1k views

I have multiple projects in different repositories: tools thirdparty shared ├──Common ├──Exceptions multimedia ├──VolumeControl ├──VideoRenderer android ├──Audio For example, android depends on ...
ssk's user avatar
  • 9,355
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
272 votes
16 answers
269k views

I'm working with a repository with a very large number of files that takes hours to checkout. I'm looking into the possibility of whether Git would work well with this kind of repository now that it ...
dromodel's user avatar
  • 10.4k
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