Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to clone a part of SVN repository?

I have an SVN repository, which has many directories inside. Now I would like to clone this repository, leaving only one particular directory in it. And of course I don't need any revisions related to other directories in this new repository. How can I do it? Thanks.

like image 499
yegor256 Avatar asked Sep 06 '25 06:09

yegor256


1 Answers

You will need to create a dump of your repository, and filter out the directories and revisions you want. svndumpfilter is the all-purpose tool for this. See this chapter of the subversion book for an example.

like image 101
Pekka Avatar answered Sep 08 '25 00:09

Pekka