没有分支的svn存储库结帐 [英] svn repository checkout without branches
本文介绍了没有分支的svn存储库结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须签出一个有 8 个分支的存储库,我不会下载每个分支大小约 400MB.只需要检出文件夹结构和主干.
I have to checkout a repository that has 8 branches which I don't wont to download each branch size ~400MB. Only need to checkout the folder structure and the trunk.
repo/trunk
repo/tags/<do not download content of this directory>
repo/branches/<do not download content of this directory>
有什么想法吗?优先使用命令行.
Any idea? Prefer command line use.
推荐答案
您想使用 Subversion 的 稀疏目录 功能.
You want to use Subversion's sparse directories feature.
svn co --depth immediates URL_TO_REPOSITORY PATH_TO_WORKING_COPY
svn update --set-depth infinity PATH_TO_WORKING_COPY/trunk
或者,如果您根本不打算使用标签或分支,只需查看 trunk
目录.
Or, just check out the trunk
directory, if you're not going to work with the tags or branches at all.
这篇关于没有分支的svn存储库结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文