没有分支的svn存储库检出

Gih*_*han 6 svn version-control

我必须检查一个有8个分支的存储库,我不会下载每个分支大小~400MB.只需要检查文件夹结构和主干.

repo/trunk
repo/tags/<do not download content of this directory>
repo/branches/<do not download content of this directory>
Run Code Online (Sandbox Code Playgroud)

任何的想法?首选命令行使用.

alr*_*roc 10

您想使用Subversion的稀疏目录功能.

svn co --depth immediates URL_TO_REPOSITORY PATH_TO_WORKING_COPY
svn update --set-depth infinity PATH_TO_WORKING_COPY/trunk
Run Code Online (Sandbox Code Playgroud)

或者,trunk如果您根本不打算使用标签或分支,只需查看目录.