Selectively checking out subfolders with SVN

Recently encountered a need to archive some large source code but also only needing to tend to a small subfolder. the trick is to do a checkout with zero depth, only retrieving the root folder’s file and subfolder and nothing below the subfolder

svn co http://your/svn SOME_LOCAL_DIR --depth immediates

goto the directory you want and then run the following to retrieve those contents

svn update --set-depth immediates

do this as many times to get to the intended folder you want. and svn commit will just deal with only those folders you’ve checked out.

or execute the following to checkout everything below the current folder.
svn update --set-depth infinity

Be the first to comment

Leave a Reply

Your email address will not be published.


*