我需要检出一个包含8个分支的代码库,但我不想下载每个分支的大小约为400MB。我只需要检出文件夹结构和主干。
repo/trunk
repo/tags/<do not download content of this directory>
repo/branches/<do not download content of this directory>
有什么想法吗?更喜欢使用命令行。
我需要检出一个包含8个分支的代码库,但我不想下载每个分支的大小约为400MB。我只需要检出文件夹结构和主干。
repo/trunk
repo/tags/<do not download content of this directory>
repo/branches/<do not download content of this directory>
svn co --depth immediates URL_TO_REPOSITORY PATH_TO_WORKING_COPY
svn update --set-depth infinity PATH_TO_WORKING_COPY/trunk
或者,如果您根本不打算使用标签或分支,请直接查看trunk
目录。
svn co http://svn-server/repo/trunk repo
。 - thekbb