How to checkout subdirectory from Subversion repository

Performing checkout on a Subversion repository is easy. However, if a SVN repository is large in size, you might want to checkout a specific subdirectory to work only on the files inside that. This can also be done in SVN.

For example, assume you have a huge repository named foobar and want to checkout only the subdirectory src/joe from it. This can be done as follows:

$ svn checkout --non-recursive http://svnserver/foobar
$ cd foobar
$ svn update src/joe

Tried with: Subversion 1.8.8 and Ubuntu 14.04

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.