Questions tagged [sparse-checkout]

A working copy of version controlled code which doesn't include the whole repository.

124 questions
0
votes
1 answer

Download newly sparse checkedout files when pulling in git

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 in the sparse-checkout file. Now I'd like to add…
lolsu
  • 53
  • 8
0
votes
1 answer

Undo git checkout.. with a twist

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 use-case: I am using the sparse-checkout feature…
Cris70
  • 307
  • 1
  • 3
  • 15
0
votes
2 answers

How to checkout or clone a folder without downloading its parent folder

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 are other folders parallel to asamp folder. I only…
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
0
votes
1 answer

Does sparse-checkout act on tracked file?

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. In remote repo,git version is 2.16.6,I set…
kittygirl
  • 2,255
  • 5
  • 24
  • 52
0
votes
1 answer

having trouble with a git sparse checkout (folder)

here is my git server tree: ----a/ |--b/ |--c/ |--d/ |--e/ |--f/ |--g.txt |--h.readme here is my git version tree ---------------->master |---->myBranch [files are up to date here] here is…
Guillaume D
  • 2,202
  • 2
  • 10
  • 37
0
votes
0 answers

Reduce scope of sparse checkout of git

I have a repo with 3 subfolders: A, B, C I do a checkout with A/ and B/ in sparse_checkout. Now I want to remove B from my sparse view. How? If I just rm -r B, or git rm -r B, or git rm -r --cached B then git wants to commit that removal to the…
user2583621
  • 165
  • 12
0
votes
2 answers

Git sparse checkout: adding directories to existing list is not recognized

Situation I managed to create a local git repository in my laptop by pulling a single subdirectory of the master branch in a remote repository. I have followed the instructions given in this post on https://stackoverflow.com/a/13738951/5459638. I…
XavierStuvw
  • 1,294
  • 2
  • 15
  • 30
0
votes
1 answer

Sparse Checkout on Specific work directory

I am trying to accomplish the auto deploy of project to my shared hosting server. What i am trying to accomplish is that the public directory needs to be checked out in the www directory, where as the other files and directories needs to checkout on…
Sizzling Code
  • 5,932
  • 18
  • 81
  • 138
0
votes
1 answer

How do I convert full checkout to sparse checkout?

Having a full checkout of a repository, how can I convert it into a sparse checkout?
user7610
  • 25,267
  • 15
  • 124
  • 150
0
votes
0 answers

How to pull and push sub directory in Git

My requirement is to pull and push files only for particular folder from the master repo. The method I am using is only helping me in pulling files for particular folder but not in pushing. So in my master repo I have folder structure something…
rohit rawat
  • 1
  • 1
  • 4
0
votes
1 answer

Conflicts during "svn update" from Windows command line

I'm using VisualSVN Server for my back-end SVN server (if that matters). Below are two sets of commands. The first set creates a folder and then checks out a folder in SVN to that newly created Windows folder. The second set (single command) is…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
0
votes
0 answers

Partial SVN checkout and update depending on properties

Is it possible to use SVN properties to mark files/folders necessary to compile and run a part of a larger project. E.g. "config1:used" "config2:unused". i would like to do something like (Pseudocommand): svn checkout URL[@REV] PATH .where…
Yggdrasil
  • 43
  • 6
0
votes
1 answer

Git sparse-checkout on existing files

I'm trying to do a sparse checkout on an existing project with a whole repository checked out. The current structure is database/ htdocs/ include/ But I only want include and certain folders from the htdocs directory. So did the following: git…
spankmaster79
  • 21,555
  • 10
  • 42
  • 73
0
votes
1 answer

How determine whether a MKS-sandbox is sparse or non-sparse from the command line?

how can I determine the sparse status of an MKS sandbox from the command line? From the GUI, I can select a sandbox and open "Sandbox Information". If the check-box "Sparse" is set, the sandbox is sparse. I like to determine this status from the…
Titule
  • 26
  • 3
1 2 3
8
9