Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How not to download entire folder with (tortoise) SVN

I need to checkout from a huge repository (over 25GB in size). Still I know that some big folders will not be needed. Can I avoid downloading them somehow?

like image 451
Eugeny89 Avatar asked Aug 13 '13 04:08

Eugeny89


People also ask

How do I ignore bin and obj folder in SVN?

To set your global ignore pattern (with TortoiseSVN) right click Windows Explorer –> TortoiseSVN –> Settings. Once you click on settings enter your global ignore pattern. I'm blocking everything in my bin folder, obj folder, anything that may have been named *.

How do I download a folder from TortoiseSVN?

To export single files with TortoiseSVN, you have to use the repository browser (the section called “The Repository Browser”). Simply drag the file(s) you want to export from the repository browser to where you want them in the explorer, or use the context menu in the repository browser to export the files.

How copy folder from SVN to local?

If the clipboard contains such versioned items, you can then use TortoiseSVN → Paste (note: not the standard Windows Paste) to copy or move those items to the new working copy location. You can copy files and folders from your working copy to another location in the repository using TortoiseSVN → Branch/Tag.

How do I ignore a folder in SVN?

Set the svn:ignore property of the parent directory: svn propset svn:ignore dirname . If you have multiple things to ignore, separate by newlines in the property value.


1 Answers

You want to look up Sparse Checkouts in the svn book, or the Tortoise manual.

In short - checkout the root folder, using "just this item" option in the checkout dialog, then use the repo browser to view the project, select the ones you want to checkout and use the "update item to revision" menu item to check them out. This allows you to check out a working copy that contains only a partial set of the repo.

Alternatively, you can use the exclude option to remove a directory you've already checked out.

like image 123
gbjbaanb Avatar answered Oct 31 '22 07:10

gbjbaanb