svn checkout 指定目录(转)

http://www.uqugu.com/blog/article/svn-checkout-specified-forder/

svn有时只想检出指定目录,对于其他的大文件目录则不想检出,如不想检出python代码中的site-packages。可以用以下的方法。

1.检出feat/2中的所有文件(但不包括文件夹)到本地feat/2中,并在feat/2中建立.svn目录等相关配置。

svn checkout --depth files http://svn.sinaapp.com/feat/2 feat/2

2.检出需要的文件夹及其迭代的所有子文件夹及文件,如feat/2下的feat和blog,及其子文件夹和文件等。

svn update --depth infinity feat
svn update --depth infinity blog

3.检出不想包括文件的空目录,如site-packages

svn update --depth empty site-packages
原文地址:https://www.cnblogs.com/erhu-67786482/p/8656416.html