Change depth in existing SVN working copy without redownloading

Woo hoo, I had this problem, and TortoiseSVN has supported solutions for both add and delete an item from the sparse checkout. http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-checkout.html 1.To add: In windows explorer, Right click on the checked out folder, then use TortoiseSVN ? Repo-Browser to bring up the repository browser. Find the sub-folder you would like to add to …

Read more

github/git Checkout Returns ‘error: invalid path’ on Windows

After I opened an issue on the git-for-windows bug tracker (https://github.com/git-for-windows/git/issues/2803), I found that my issue had already been filed as https://github.com/git-for-windows/git/issues/2777. That issue suggested that I need to set another git flag: git config core.protectNTFS false This (#2777) indeed contains a bypass for the my problem. I hope the git or git-for-windows (who were …

Read more

Can you do a partial checkout with Subversion?

Indeed, thanks to the comments to my post here, it looks like sparse directories are the way to go. I believe the following should do it: svn checkout –depth empty http://svnserver/trunk/proj svn update –set-depth infinity proj/foo svn update –set-depth infinity proj/bar svn update –set-depth infinity proj/baz Alternatively, –depth immediates instead of empty checks out files …

Read more

Checkout subdirectories in Git?

Sparse checkouts are now in Git 1.7. Also see the question “Is it possible to do a sparse checkout without checking out the whole repository first?”. Note that sparse checkouts still require you to download the whole repository, even though some of the files Git downloads won’t end up in your working tree.

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

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?“ …

Read more