sparse-checkout

Git sparse checkout with exclusion

女生的网名这么多〃 提交于 2019-12-28 06:02:13
问题 According to this thread, exclusion in Git's sparse-checkout feature is supposed to be implemented. Is it? Assume that I have the following structure: papers/ papers/... presentations/ presentations/heavy_presentation presentations/... Now I want to exclude presentations/heavy_presentation from the checkout, while leaving the rest in the checkout. I haven't managed to get this running. What's the right syntax for this? 回答1: I would have expected something like the below to work: /*

Git sparse checkout with exclusion

限于喜欢 提交于 2019-12-28 06:01:05
问题 According to this thread, exclusion in Git's sparse-checkout feature is supposed to be implemented. Is it? Assume that I have the following structure: papers/ papers/... presentations/ presentations/heavy_presentation presentations/... Now I want to exclude presentations/heavy_presentation from the checkout, while leaving the rest in the checkout. I haven't managed to get this running. What's the right syntax for this? 回答1: I would have expected something like the below to work: /*

sparse svn update of deep directory structure

房东的猫 提交于 2019-12-19 09:28:21
问题 Is there a way to have a sparse checkout of an SVN repo with deep nested directory structure. I'm doing this using a listing of all the files in the repo and filtering for just *.xml: svn list --recursive "http://myRepo.com/trunk" > allFiles.txt I'm trying to do the following: svn checkout "http://myRepo.com/trunk" --depth empty "myRepo" svn update --set-depth empty project1/dirs/moreDirs/evenMore/file.xml I tried this but got an error saying it was skipping updating that file. If I manually

sparse svn update of deep directory structure

大兔子大兔子 提交于 2019-12-19 09:28:05
问题 Is there a way to have a sparse checkout of an SVN repo with deep nested directory structure. I'm doing this using a listing of all the files in the repo and filtering for just *.xml: svn list --recursive "http://myRepo.com/trunk" > allFiles.txt I'm trying to do the following: svn checkout "http://myRepo.com/trunk" --depth empty "myRepo" svn update --set-depth empty project1/dirs/moreDirs/evenMore/file.xml I tried this but got an error saying it was skipping updating that file. If I manually

Can you do a partial checkout with Subversion?

自古美人都是妖i 提交于 2019-12-17 06:22:13
问题 If I had 20 directories under trunk/ with lots of files in each and only needed 3 of those directories, would it be possible to do a Subversion checkout with only those 3 directories under trunk? 回答1: Subversion 1.5 introduces sparse checkouts which may be something you might find useful. From the documentation: ... sparse directories (or shallow checkouts ) ... allows you to easily check out a working copy—or a portion of a working copy—more shallowly than full recursion, with the freedom to

How to sparsely checkout only one single file from a git repository?

走远了吗. 提交于 2019-12-16 19:51:29
问题 How do I checkout just one file from a git repo? 回答1: Originally, I mentioned in 2012 git archive (see Jared Forsyth's answer and Robert Knight's answer), since git1.7.9.5 (March 2012), Paul Brannan's answer: git archive --format=tar --remote=origin HEAD:path/to/directory -- filename | tar -O -xf - But: in 2013, that was no longer possible for remote https://github.com URLs. See the old page "Can I archive a repository?" The current (2018) page "About archiving content and data on GitHub"

Why does git sparse checkout leave behind directories?

本秂侑毒 提交于 2019-12-12 16:25:15
问题 Some background: My company's service model began as an appliance-based server model. We would send our client a server with Windows Server 2003/2008 on it, pre-loaded with a webserver and our software. We're moving all of the client-specific configuration to a Git repository, and using sparse-checkout to make each server only contain what's necessary for the client's software to function properly. While setting up sparse-checkout, we've run into a huge inconsistency. We'll do git clone git

How do I convert full checkout to sparse checkout?

北城余情 提交于 2019-12-12 04:34:51
问题 Having a full checkout of a repository, how can I convert it into a sparse checkout? 回答1: Run git config core.sparseCheckout true then create .git/info/sparse-checkout /* !excluded-dir/ then run git checkout master and excluded-dir will disappear. My problem was that I did not put a trailing slash behind the excluded directory in my .git/info/sparse-checkout Much thanks to http://www.richsomerfield.com/post/2014-03-05-adventures-in-git-sparsecheckouts/ 来源: https://stackoverflow.com/questions

Mercurial sparse checkout

一世执手 提交于 2019-12-11 02:18:34
问题 In this F8 conference video(starting 8:40) from 2015 they speak about the advantages of using Mercurial and a single repository across facebook. How does this work in practice? Using Mercurial, can i checkout a subdirectory (live in SVN)? If so, how? Do i need a facebook-mercurial-extension for this P.S.: I only found answers like this or this from 2010 on SO where i am not sure if the answers still apply with all the efforts FB put into it. 回答1: From your question it is not clear if you are

git checkout . adds directories excluded by sparse checkout

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 19:56:25
问题 In a sparse checkout scenario, the command git checkout . restores the directories that should be ignored. Is this by design, or a potential problem in Git? I’m using git checkout . to discard any changes I’ve made to my working copy -- is there another command that will do the same and not suffer from this problem? Here’s a reproducible example: rm -rf test git init test cd test for f in a b c; do mkdir $f touch $f/$f git add $f/$f git commit -m "added $f" done git config core.sparsecheckout