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

I am trying to achieve a combination of operating in a sparsely checked out repo being able to run a git blame operation with line details - but not triggering a network fetch for each historical ...
mediantis's user avatar
  • 145
0 votes
0 answers
86 views

I have a repo I would like to clone with a structure like this: repo/folder1 repo/folder2 repo/file1 repo/file2 I want to keep folder1 and nothing else. When I try git sparse-checkout init --cone, it ...
Dani Jourdain's user avatar
1 vote
1 answer
161 views

We have a repository with several large sql files, ranging from 100MB to 10GB in size. Been trying to setup local cloning so we only download the sql file(s) that need changed and committed at any ...
Eschin Tenebrous's user avatar
0 votes
2 answers
44 views

In a sparse git checkout, one does not see the folders (directories/trees) that haven't been added via git sparse-checkout add. I can still "browse" these folders with git cat-file -p HEAD ...
Thomas Koch's user avatar
  • 2,941
2 votes
0 answers
49 views

I'm aware that similar questions have been asked in the past, however, since the newest of them are pushing on being a decade old, I feel it's reasonable to try again with my particular problem. I ...
mathrick's user avatar
  • 243
0 votes
1 answer
156 views

I don't know if I am making things clear or not (since I am not an advances git user), so please ask follow up questions to better understand where I'm coming from. Consider this repo: Void Linux ...
sigsegv's user avatar
  • 211
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
0 votes
0 answers
43 views

Suppose, my remote git repository looks like this: Repository ├── Folder1 │ ├── p1.py │ └── p2.py ├── Folder2 │ └── p3.py ├── file1 └── file2 I want to download only the descendants of Folder1, ...
Dr. Gut's user avatar
  • 3,391
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
2 votes
1 answer
1k views

I rarely use a sparse checkout (more likely to use a shallow clone). I almost always use a .gitignore file. That file is sometimes configured to ignore directories or files that are already part of ...
Kevin's user avatar
  • 2,826
1 vote
0 answers
53 views

As a (late) followup on How do I clone a subdirectory only of a Git repository?, I additionally need the date and time of the latest commit in that subdirectory. However, the --depth=1 command only ...
olebole's user avatar
  • 593
0 votes
1 answer
348 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
1 vote
1 answer
75 views

You can get the hash of a tree in a commit by doing: git rev-parse 'HEAD^{tree}' And you can get the hash of the tree in the index by doing: git write-tree However, in the case you did a sparse ...
Noé Rubinstein's user avatar
3 votes
1 answer
656 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
603 views

My Requirement was to checkout a specific directory from a repo and also checkout each branch which has that directory and copy each branch directory to a target path. For Example football is a repo ...
Selvathalapathy S's user avatar
1 vote
1 answer
689 views

Let's assume we have a Git repo with a three-level subfolder: |_ |_Folder1 |_Folder2 |_ SubFolder2 |_ SubSubFolder2 I need to sparse checkout this folder and place it into ...
bairog's user avatar
  • 3,539
1 vote
0 answers
660 views

Is there something similar to git worktree add directory commit-ish:SUB_PATH? Use Case I have the following structure - alpha |- VERSION \- file.txt \- sub - beta And the goal is to check ...
weshouman's user avatar
  • 963
4 votes
0 answers
934 views

I have a two branches main and feature branch. In both the branches there are two folders f1 and f2. There is a file inside f1 folder called file1.txt. main branch structure -root - f1 - file1.txt ...
PforPython's user avatar
0 votes
0 answers
340 views

as in the title, I’m using git sparse-checkout, and I’m missing commits between the last git tag and the last commit I’m on. It creates a problem that I will try to describe it in a few points below: ...
Sebastian Błaszczyk's user avatar
0 votes
1 answer
542 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
2 votes
0 answers
6k views

I have following repository: = dir 1 -- subdir1 -- subdir2 = dir 2 And I want to clone e.g. dir2 and dir1/subdir1. I followed instructions from this question: How do I clone a subdirectory only of ...
Raf1k's user avatar
  • 51
1 vote
1 answer
119 views

Several months ago, we migrated a bunch of Subversion repositories to Git using svn-all-fast-export. (That information explains how this directory got in the Git directory in the first place, but ...
Nick Williams's user avatar
2 votes
0 answers
2k views

I have clone the full repo before. so I run the following command. cd main git sparse-checkout init --cone echo -e '/*\n!/client/*' > .git/info/sparse-checkout git checkout then the output warning:...
ningyuwhut's user avatar
0 votes
0 answers
101 views

What I want to do: Add a submodule to an existing repo Do a sparse checkout on that repo (only populate a subset of the working tree) Make it so that when other people clone/pull that repo, the ...
Danny Garside's user avatar
1 vote
1 answer
511 views

I am aware that a very similar question has been asked before, but not only is the provided answer awful and doesn't answer the question, but it seems there is no consensus about the technique as well....
Scrontch's user avatar
  • 3,472
-1 votes
1 answer
479 views

I am new to Git and I am having some problems when creating new folders. I have a sparse-checkout of a repository (as I don't need the whole thing) and I created a new folder with some files in it, ...
Pascal's user avatar
  • 11
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
5 votes
1 answer
3k views

The working way to sparse checkout using git bash is: git clone \ --depth 1 \ --filter=blob:none \ --sparse \ https://github.com/darc-coder/FindMyQRApp \ cd test-git-partial-clone git sparse-...
DarkCoder's user avatar
  • 123
1 vote
1 answer
401 views

Can someone please explain how this is possible that "git log -1" returns different hash on the same repository on different machines (repositories are fully synced)? we have several docker ...
Yury Kozlov's user avatar
  • 1,421
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
0 answers
129 views

I have a remote named [email protected]:MyOrg/my-repo.git There are several folders within its root directory. I only want to fetch ONE of them, named datadog. I am running the following commands $ g ...
pkaramol's user avatar
  • 19.9k
0 votes
1 answer
496 views

I've just upgraded to git 2.32 on my Mac (through brew install git). Now my git-prompt says (branchname|SPARSE) on all local repositories. I have to run git config core.sparsecheckout false on each ...
Matt Montag's user avatar
  • 7,619
0 votes
1 answer
122 views

We're migrating from SVN to git and now having the problem that we need any replacement for our svn externals. Unfortunately, submodules are not solving our problems since any change in the submodule ...
nrgyzer's user avatar
  • 1,125
3 votes
1 answer
2k views

Problem Git cloning the repository on a Windows 10 machine throws this error: error: invalid path 'saleor/graphql/core/tests/cassettes/test_get_oembed_data[http:/www.youtube.com/watch?v=dQw4w9WgXcQ-...
Megidd's user avatar
  • 8,233
1 vote
1 answer
865 views

Lets say I create a git repo. I enable sparse checkout and then I add some files in git/info/sparse-checkout. After that, i add a origin and pull. Now i will only have the files matching the pattern ...
lolsu's user avatar
  • 103
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
0 votes
1 answer
94 views

First of all, let me make one thing clear: although there are a LOT of questions about undoing a git checkout, this is not (at least as far as I can assess) a duplicate question. Now let me explain my ...
Cris70's user avatar
  • 339
0 votes
2 answers
1k views

I want to checkout only a folder from gitlab without its parent folder and other parent folder in the hierarchy. Our gitlab repository structure is something like this hybris/bin/custom/asamp. There ...
vikrant kamble's user avatar
225 votes
22 answers
285k views

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-1.el6.noarch.rpm' I suspect the issue is that the path ...
wdtj's user avatar
  • 6,257
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
1 vote
1 answer
1k views

I was trying to use Sparse checkout option to reduce the size of checkout in my Jenkins Pipeline. It worked for some time and then when I did small modifications to the script (not in the checkout ...
Arpit's user avatar
  • 87
3 votes
2 answers
3k views

I am testing the git partial clone feature on a large monorepo. A developer might run the following commands on his machine: git clone --filter=blob:none --sparse THE_MONOREPO_URL.git git sparse-...
Touloudou's user avatar
  • 2,293
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
2 votes
1 answer
870 views

As git is increasingly advertised (and enhanced) to better support very large repositories (so-called "monorepos"), with major recent enhancements to the sparse-checkout workflow (git-sparse-...
Tao's user avatar
  • 14.1k
0 votes
1 answer
314 views

My local and remote server both are centos 7. I tracked README.md in local repo with git version 1.8.3.1.When I revised README.md and push to remote bare repo, I don't want README.md to be checked out....
kittygirl's user avatar
  • 2,505
2 votes
0 answers
103 views

I am writing a script that clones a large git repository, modifies a few files and pushes the changes back to the remote. It needs to run as fast as possible. Right now, it takes about 10 minutes to ...
Touloudou's user avatar
  • 2,293